From: Bruno Haible Date: Tue, 11 Nov 2025 14:04:13 +0000 (+0100) Subject: doc: Tweak wording about _Bool. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90faa0992d200759b636508bbf2e532b8d64ceab;p=thirdparty%2Fgnulib.git doc: Tweak wording about _Bool. Reported by Alejandro Colomar in . * doc/posix-headers/stdbool.texi: State that _Bool may be a keyword. --- diff --git a/ChangeLog b/ChangeLog index f86ce111d5..66c8c9fd96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-11-11 Bruno Haible + + doc: Tweak wording about _Bool. + Reported by Alejandro Colomar in + . + * doc/posix-headers/stdbool.texi: State that _Bool may be a keyword. + 2025-11-10 Bruno Haible argp: Don't use an 'rpl_' function name prefix if not necessary. diff --git a/doc/posix-headers/stdbool.texi b/doc/posix-headers/stdbool.texi index dc4acc4f3f..0c841cfe5d 100644 --- a/doc/posix-headers/stdbool.texi +++ b/doc/posix-headers/stdbool.texi @@ -34,8 +34,12 @@ Portability problems not fixed by Gnulib: the program is intended to be compiled by a C++ compiler. (With the advent of C23, @samp{_Bool} is obsolescent anyway.) @item -You cannot assume that @code{_Bool} is a typedef; it might be a macro. +You cannot assume that @code{_Bool} is a keyword or a typedef; +@c In ISO C 99 § 6.4.1.(1) it is listed as a keyword. +@c Older released of Mac OS X and FreeBSD define it as a typedef. +it might be a macro. For example, C23 allows @code{_Bool} to be a macro. +@c See ISO C 23 § 6.4.1.(3) footnote 63. @item Bit-fields of type @samp{bool} are not supported. Portable code should use @samp{unsigned int foo : 1;} rather than @samp{bool foo : 1;}.