In libtcc.h there is void tcc_set_realloc(TCCReallocFunc *my_realloc). Name the parameter in the function definition in libtcc.c accordingly.
Unified · Split
| @@ -264,9 +264,9 @@ ST_FUNC void libc_free(void *ptr) · 263 unmodified lines | |||
| 264 | /* global so that every tcc_alloc()/tcc_free() call doesn't need to be changed */ | 264 | /* global so that every tcc_alloc()/tcc_free() call doesn't need to be changed */ |
| 265 | static void *(*reallocator)(void*, unsigned long) = default_reallocator; | 265 | static void *(*reallocator)(void*, unsigned long) = default_reallocator; |
| 266 | 266 | ||
| 267 | LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *realloc) | 267 | LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *my_realloc) |
| 268 | { | 268 | { |
| 269 | reallocator = realloc ? realloc : default_reallocator; | 269 | reallocator = my_realloc ? my_realloc : default_reallocator; |
| 270 | } | 270 | } |
| 271 | 271 | ||
| 272 | /* in case MEM_DEBUG is #defined */ | 272 | /* in case MEM_DEBUG is #defined */ |