From 93112a5a7cda2fe76c9370604af58b30ef31afc5 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 21 Dec 2024 13:01:15 +0100 Subject: [PATCH] Update example --- example/ex-alloc1.c | 4 ++-- example/ex-alloc2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/ex-alloc1.c b/example/ex-alloc1.c index 0ce8728c..49390dae 100644 --- a/example/ex-alloc1.c +++ b/example/ex-alloc1.c @@ -47,8 +47,8 @@ static void my_array_free(void *ptr) # define M_MEMORY_DEL(ptr) my_free(ptr, sizeof *ptr) // Allocate for array of objects -# define M_MEMORY_REALLOC(type, ptr, n) my_array_alloc (sizeof (type), ptr, n) -# define M_MEMORY_FREE(ptr) my_array_free(ptr) +# define M_MEMORY_REALLOC(type, ptr, o, n) my_array_alloc (sizeof (type), ptr, n) +# define M_MEMORY_FREE(type, ptr, n) my_array_free(ptr) #include "m-list.h" #include "m-array.h" diff --git a/example/ex-alloc2.c b/example/ex-alloc2.c index e233cb49..48a441dd 100644 --- a/example/ex-alloc2.c +++ b/example/ex-alloc2.c @@ -76,8 +76,8 @@ static void my_array_free(void *ptr) } // Allocate for array of objects -# define MY_MEMORY_REALLOC(type, ptr, n) my_array_alloc (sizeof (type), ptr, n) -# define MY_MEMORY_FREE(ptr) my_array_free(ptr) +# define MY_MEMORY_REALLOC(type, ptr, o, n) my_array_alloc (sizeof (type), ptr, n) +# define MY_MEMORY_FREE(type, ptr, n) my_array_free(ptr) ////////////////////////////////////////////////////////////