Thread (1 message) 1 message, 1 author, 2025-01-08

Re: [PATCH] t-reftable-basics: allow for `malloc` to be `#define`d

From: Junio C Hamano <hidden>
Date: 2025-01-08 17:14:29

"Johannes Schindelin via GitGitGadget" [off-list ref]
writes:
-		reftable_set_alloc(malloc, realloc_stub, free);
+		reftable_set_alloc(NULL, realloc_stub, NULL);
Nice.  By setting it to NULL, we force the use of whichever "malloc"
is in effect, and thanks to the way reftable_malloc() is written, we
do not even have to be able to take the address of "malloc" ;-)

Will fast-track down to 'master'.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help