X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-headers%2Fstdbool.texi;h=de27763bc5d18586a20e7c196e00905dc99f80f8;hb=bd399f07ee4f383fad038efad25a659fcdc0bbb0;hp=94dca84c34fed701f3d06c7331e4ce1b124422f1;hpb=2b6c08c775ae4e80b52aa41058ea5939f778b44b;p=gnulib.git diff --git a/doc/posix-headers/stdbool.texi b/doc/posix-headers/stdbool.texi index 94dca84c3..de27763bc 100644 --- a/doc/posix-headers/stdbool.texi +++ b/doc/posix-headers/stdbool.texi @@ -1,7 +1,7 @@ @node stdbool.h @section @file{stdbool.h} -POSIX specification: @url{http://www.opengroup.org/susv3xbd/stdbool.h.html} +POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdbool.h.html} Gnulib module: stdbool @@ -12,6 +12,9 @@ This header file is missing on some platforms: AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1. @item Some compilers have bugs relating to @samp{bool}. +@item +This header file defines @code{true} incorrectly on some platforms: +OpenBSD 4.7 with gcc 2.95. @end itemize Portability problems not fixed by Gnulib: @@ -27,4 +30,7 @@ should use @samp{unsigned int foo : 1;} rather than @samp{bool foo : 1;}. Casts and automatic conversions to @samp{bool} don't test against the zero value or the null pointer, as they should. Such casts should only be used if the casted value is known to be equal to 0 or 1. +@item +You cannot assume that casting a floating point literal to @samp{bool} will +result in a constant expression. @end itemize