libtcc.c: Change parameter name of tcc_set_realloc
Some checks failed
build and test / test-x86_64-linux (push) Has been cancelled
build and test / test-x86_64-osx (push) Has been cancelled
build and test / test-aarch64-osx (push) Has been cancelled
build and test / test-x86_64-win32 (push) Has been cancelled
build and test / test-i386-win32 (push) Has been cancelled
build and test / test-armv7-linux (push) Has been cancelled
build and test / test-aarch64-linux (push) Has been cancelled
build and test / test-riscv64-linux (push) Has been cancelled

In libtcc.h there is void tcc_set_realloc(TCCReallocFunc *my_realloc).
Name the parameter in the function definition in libtcc.c accordingly.
This commit is contained in:
Stefan 2026-03-28 15:44:20 +01:00
parent 085bdf8997
commit 98765e5ebc

View File

@ -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 */