From: rsbecker@nexbridge.com Date: Tue, 15 Jul 2025 20:47:25 GMT Subject: RE: [PATCH v2 0/3] C99: declare bool experiment a success Message-ID: <000501dbf5c9$af9598d0$0ec0ca70$@nexbridge.com> In-Reply-To: On July 15, 2025 3:35 PM, Elijah Newren wrote: >On Tue, Jul 15, 2025 at 11:23 AM wrote: >> >> On July 15, 2025 1:19 PM Elijah Newren wrote: >> >On Tue, Jul 15, 2025 at 6:53 AM Phillip Wood >> > >> >wrote: >> >> >> >> From: Phillip Wood >> >> >> >> We've had a test balloon for C99's bool type since 8277dbe987 >> >> (git-compat-util: convert skip_{prefix,suffix}{,_mem} to bool, >> >> 2023-12-16). As it has been over 18 months since this was added and >> >> there have been no complaints let's declare it a success and >> >> convert the return type our other string predicates to match. >> >> >[...] >> >> bool is not standard in all c99 implementations. I have to #include >> in order to use this type. Please make sure there is a mechanism for >that. > >>From the referenced commit in the commit message: > >$ git log --oneline -1 -p 8277dbe987 | head -n 13 >8277dbe9872 git-compat-util: convert skip_{prefix,suffix}{,_mem} to bool diff --git >a/git-compat-util.h b/git-compat-util.h index 3e7a59b5ff1..603c97e3b3f 100644 >--- a/git-compat-util.h >+++ b/git-compat-util.h >@@ -225,6 +225,7 @@ struct strbuf; > #include > #include > #include >+#include > #include > #ifdef HAVE_STRINGS_H > #include /* for strcasecmp() */ > > >So, there's not only a mechanism for that, it has already been done for you 1.5 >years ago. No extra work on your or anyone else's part needed. :-) Many thanks.