History

libtcc.c: Change parameter name of tcc_set_realloc

In libtcc.h there is void tcc_set_realloc(TCCReallocFunc *my_realloc). Name the parameter in the function definition in libtcc.c accordingly.

Stefan committed 7 months ago

Commit 98765e51 parent 085bdf81 file · +2 −2Browse files

Unified · Split

libtcc.c+2−2
@@ -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 */
265static void *(*reallocator)(void*, unsigned long) = default_reallocator;265static void *(*reallocator)(void*, unsigned long) = default_reallocator;
266 266
267LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *realloc)267LIBTCCAPI 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 */