From: Junio C Hamano Date: Tue, 18 Aug 2020 19:27:00 GMT Subject: Re: [PATCH v3 0/3] Extend and add a little more generalization to the mem_pool API Message-ID: In-Reply-To: "Elijah Newren via GitGitGadget" 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.