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) ////////////////////////////////////////////////////////////