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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t