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

tb/ban-strtok (was: Re: What's cooking in git.git (Apr 2023, #05; Mon, 17))

From
Taylor Blau <me@ttaylorr.com>
Date
Apr 18, 2023, 14:56 UTC
Message-ID
<ZD6vu6H0xzLSF/2w@nand.local>
In-Reply-To
<xmqqfs8xfw25.fsf@gitster.g>
On Tue, Apr 18, 2023 at 01:12:34AM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> * tb/ban-strtok (2023-04-14) 5 commits
>  - banned.h: mark `strtok()`, `strtok_r()` as banned
>  - t/helper/test-json-writer.c: avoid using `strtok()`
>  - t/helper/test-oidmap.c: avoid using `strtok()`
>  - t/helper/test-hashmap.c: avoid using `strtok()`
>  - string-list: introduce `string_list_split_in_place_multi()`
>
>  Mark strtok() and strtok_r() to be banned.
>
>  source: <cover.1681428696.git.me@ttaylorr.com>

This one needs a reroll to remove `strtok_r()` from the proposed banned list, and to support slightly different semantics the new string_list_split_in_place_multi() function. Will send today.

Thanks, Taylor

Previous: Taylor BlauNext: Junio C Hamano
Message 4 of 8 in “What's cooking in git.git (Apr 2023, #05; Mon, 17)”
  1. Junio C HamanoApr 18, 2023
  2. tb/pack-revindex-on-disk (was: Re: What's cooking in git.git (Apr 2023, #05; Mon, 17))Taylor Blau, Apr 18, 2023
  3. tb/enable-cruft-packs-by-default (was: Re: What's cooking in git.git (Apr 2023, #05; Mon, 17))Taylor Blau, Apr 18, 2023
  4. tb/ban-strtok (was: Re: What's cooking in git.git (Apr 2023, #05; Mon, 17))Taylor Blau, Apr 18, 2023
  5. Junio C HamanoApr 18, 2023
  6. Taylor BlauApr 18, 2023
  7. en/header-split-cache-h (Was Re: What's cooking in git.git (Apr 2023, #05; Mon, 17))Elijah Newren, Apr 19, 2023
  8. rj/branch-unborn-in-other-worktrees (was Re: What's cooking in git.git (Apr 2023, #05; Mon, 17))Rubén Justo, Apr 19, 2023

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.