Thread (214 messages) 214 messages, 14 authors, 2021-05-18

Re: [PATCH v2 05/13] reftable: utility functions

From: Han-Wen Nienhuys <hidden>
Date: 2020-10-10 22:56:19

On Fri, Oct 2, 2020 at 6:12 AM Jonathan Nieder [off-list ref] wrote:
[...]
quoted
+int binsearch(size_t sz, int (*f)(size_t k, void *args), void *args)
How does this compare to stdlib's bsearch?
bsearch gives you back NULL if it doesn't find an exact match.
quoted
+     reftable_free(a);
+}
Are there other callers that need custom free?
The libgit2 folks requested the ability to set memory allocation
routines, hence reftable_free().

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help