mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
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
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:
parent
085bdf8997
commit
98765e5ebc
4
libtcc.c
4
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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user