aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2025-07-16 10:38:28 +0100
committerJunio C Hamano <gitster@pobox.com>2025-07-16 08:18:05 -0700
commitbfa405ea36b1d3dd9bb3999a6a5590c15af13fae (patch)
tree5faa3ca8d1ddec664c0a82f1b5c3333ca5acc0f2
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff)
downloadgit-bfa405ea36b1d3dd9bb3999a6a5590c15af13fae.tar.gz
CodingGuidelines: allow the use of bool
We have 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 we've had it over 18 months without any complaints let's declare it a success. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/CodingGuidelines3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index c1046abfb7..d787bb21ea 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -298,6 +298,9 @@ For C programs:
. since late 2021 with 44ba10d6, we have had variables declared in
the for loop "for (int i = 0; i < 10; i++)".
+ . since late 2023 with 8277dbe987 we have been using the bool type
+ from <stdbool.h>.
+
New C99 features that we cannot use yet:
. %z and %zu as a printf() argument for a size_t (the %z being for