Skip to content

Commit 98765e5

Browse files
author
Stefan
committed
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.
1 parent 085bdf8 commit 98765e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libtcc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ ST_FUNC void libc_free(void *ptr)
264264
/* global so that every tcc_alloc()/tcc_free() call doesn't need to be changed */
265265
static void *(*reallocator)(void*, unsigned long) = default_reallocator;
266266

267-
LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *realloc)
267+
LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *my_realloc)
268268
{
269-
reallocator = realloc ? realloc : default_reallocator;
269+
reallocator = my_realloc ? my_realloc : default_reallocator;
270270
}
271271

272272
/* in case MEM_DEBUG is #defined */

0 commit comments

Comments
 (0)