Skip to content

Commit bfa405e

Browse files
phillipwoodgitster
authored andcommitted
CodingGuidelines: allow the use of bool
We have had a test balloon for C99's bool type since 8277dbe (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 16bd9f2 commit bfa405e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/CodingGuidelines

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ For C programs:
298298
. since late 2021 with 44ba10d6, we have had variables declared in
299299
the for loop "for (int i = 0; i < 10; i++)".
300300

301+
. since late 2023 with 8277dbe987 we have been using the bool type
302+
from <stdbool.h>.
303+
301304
New C99 features that we cannot use yet:
302305

303306
. %z and %zu as a printf() argument for a size_t (the %z being for

0 commit comments

Comments
 (0)