git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 18, 2020, 19:27 UTC
Message-ID
<xmqqsgcjycu3.fsf@gitster.c.googlers.com>
In-Reply-To
<pull.830.v3.git.git.1597513078.gitgitgadget@gmail.com>
"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é
Thanks; will queue.
Previous: Elijah Newren via GitGitGadget
Message 17 of 17 in “Extend and add a little more generalization to the mem_pool API”
  1. 0/3 Extend and add a little more generalization to the mem_pool APIElijah Newren via GitGitGadget, Aug 14, 2020
  2. 1/3 mem-pool: add convenience functions for xstrdup and xstrndupElijah Newren via GitGitGadget, Aug 14, 2020
  3. Eric SunshineAug 14, 2020
  4. 3/3 mem-pool: use consistent pool variable nameElijah Newren via GitGitGadget, Aug 14, 2020
  5. 2/3 mem-pool: use more standard initialization and finalizationElijah Newren via GitGitGadget, Aug 14, 2020
  6. Junio C HamanoAug 14, 2020
  7. Matheus Tavares BernardinoAug 14, 2020
  8. 0/3 Extend and add a little more generalization to the mem_pool APIElijah Newren via GitGitGadget, Aug 14, 2020
  9. 1/3 mem-pool: add convenience functions for xstrdup and xstrndupElijah Newren via GitGitGadget, Aug 14, 2020
  10. René ScharfeAug 14, 2020
  11. 2/3 mem-pool: use more standard initialization and finalizationElijah Newren via GitGitGadget, Aug 14, 2020
  12. 3/3 mem-pool: use consistent pool variable nameElijah Newren via GitGitGadget, Aug 14, 2020
  13. 0/3 Extend and add a little more generalization to the mem_pool APIElijah Newren via GitGitGadget, Aug 15, 2020
  14. 3/3 mem-pool: use consistent pool variable nameElijah Newren via GitGitGadget, Aug 15, 2020
  15. 2/3 mem-pool: use more standard initialization and finalizationElijah Newren via GitGitGadget, Aug 15, 2020
  16. 1/3 mem-pool: add convenience functions for strdup and strndupElijah Newren via GitGitGadget, Aug 15, 2020
  17. Junio C HamanoAug 18, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.