diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-07-24 16:03:55 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-24 16:03:55 -0700 |
| commit | 5ce97021dd22751d0ab66dce4106dabc0463cdf0 (patch) | |
| tree | 215cea90bb92d71861135ab2b1a6b75ab9f34962 /Documentation/CodingGuidelines | |
| parent | The thirteenth batch (diff) | |
| parent | strbuf: convert predicates to return bool (diff) | |
| download | git-5ce97021dd22751d0ab66dce4106dabc0463cdf0.tar.gz git-5ce97021dd22751d0ab66dce4106dabc0463cdf0.zip | |
Merge branch 'pw/adopt-c99-bool-officially'
Declare weather-balloon we raised for "bool" type 18 months ago a
success and officially allow using the type in our codebase.
* pw/adopt-c99-bool-officially:
strbuf: convert predicates to return bool
git-compat-util: convert string predicates to return bool
CodingGuidelines: allow the use of bool
Diffstat (limited to 'Documentation/CodingGuidelines')
| -rw-r--r-- | Documentation/CodingGuidelines | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index 6350949f2e..528b42d1dd 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 |
