Thread (1 message) 1 message, 1 author, 2020-08-18

Re: [PATCH v3 0/3] Extend and add a little more generalization to the mem_pool API

From: Junio C Hamano <hidden>
Date: 2020-08-18 19:27:08

"Elijah Newren via GitGitGadget" [off-list ref] writes:
In my new merge algorithm, I made use of the mem_pool API in a few
places...but I also needed to add a few more functions and also needed to
make the API a bit more general.

Changes since v2:

 * Remove 'x' from mem_pool_xstr[n]?dup() names and remove check for NULL
   since mem_pool_alloc() already handles that (via xmalloc), as suggested
   by René
 * Rewrite mem_pool_strndup() to not rely on strnlen(), since that may be
   too new from some systems (comes from POSIX 2008 ). Also pointed out by
   René
Thanks; will queue.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help