Re: [PATCH] t-reftable-basics: allow for `malloc` to be `#define`d
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 8, 2025, 17:14 UTC
- Message-ID
- <xmqqseptmdn1.fsf@gitster.g>
- In-Reply-To
- <pull.1848.git.1736352005578.gitgitgadget@gmail.com>
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> 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.