Re: [PATCH v3 0/3] Extend and add a little more generalization to the mem_pool API
"Elijah Newren via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 12 quoted lines
> 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é