From 98765e5ebc04ea464195fa80ea5e4bbdc70a29cc Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 28 Mar 2026 15:44:20 +0100 Subject: [PATCH] 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. --- libtcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtcc.c b/libtcc.c index 171e3622..58942e47 100644 --- a/libtcc.c +++ b/libtcc.c @@ -264,9 +264,9 @@ ST_FUNC void libc_free(void *ptr) /* global so that every tcc_alloc()/tcc_free() call doesn't need to be changed */ static void *(*reallocator)(void*, unsigned long) = default_reallocator; -LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *realloc) +LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *my_realloc) { - reallocator = realloc ? realloc : default_reallocator; + reallocator = my_realloc ? my_realloc : default_reallocator; } /* in case MEM_DEBUG is #defined */