From: Taylor Blau <me@ttaylorr.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: tb/ban-strtok (was: Re: What's cooking in git.git (Apr 2023, #06; Thu, 20))
Date: Thu, 20 Apr 2023 22:16:37 -0400 [thread overview]
Message-ID: <ZEHyBbKN5MuxqfQn@nand.local> (raw)
In-Reply-To: <xmqqwn26w5cd.fsf@gitster.g>
On Thu, Apr 20, 2023 at 03:34:26PM -0700, Junio C Hamano wrote:
> * tb/ban-strtok (2023-04-18) 6 commits
> - banned.h: mark `strtok()` 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_setlen()`
> - string-list: introduce `string_list_split_in_place_multi()`
>
> Mark strtok() and strtok_r() to be banned.
The latest round bans only strtok(), so this description would need
updating (probably to something as simple as "Mark strtok() as banned").
> Comments?
I would be curious to get Peff's (cc'd) thoughts on this series, since
it was something that he and I were talking about off-list. It was one
of those "let me see how hard this would be..." topics, that by the time
I finished investigating, I had the series ready to go.
Thanks,
Taylor
next prev parent reply other threads:[~2023-04-21 2:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-20 22:34 What's cooking in git.git (Apr 2023, #06; Thu, 20) Junio C Hamano
2023-04-21 2:16 ` Taylor Blau [this message]
2023-04-22 11:22 ` tb/ban-strtok (was: Re: What's cooking in git.git (Apr 2023, #06; Thu, 20)) Jeff King
2023-04-24 16:39 ` tb/ban-strtok Junio C Hamano
2023-04-22 15:00 ` en/header-split-cache-h-part-2 (Was: Re: What's cooking in git.git (Apr 2023, #06; Thu, 20)) Elijah Newren
2023-04-24 18:20 ` en/header-split-cache-h-part-2 Junio C Hamano
2023-04-22 15:00 ` pb/complete-and-document-auto-merge-and-friends (Was: Re: What's cooking in git.git (Apr 2023, #06; Thu, 20)) Elijah Newren
2023-04-22 21:53 ` Philippe Blain
2023-04-24 18:21 ` pb/complete-and-document-auto-merge-and-friends Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZEHyBbKN5MuxqfQn@nand.local \
--to=me@ttaylorr.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).