Documentation of what gnulib provides for each header file.
[pspp] / doc / headers / stdbool.texi
1 @node stdbool.h
2 @section @file{stdbool.h}
3
4 Gnulib module: stdbool
5
6 Portability problems fixed by Gnulib:
7 @itemize
8 @item
9 This header file is missing on some platforms:
10 AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1.
11 @item
12 Some compilers have bugs relating to @samp{bool}.
13 @end itemize
14
15 Portability problems not fixed by Gnulib:
16 @itemize
17 @item
18 @code{<stdbool.h>} must be #included before @samp{_Bool} can be used.
19 @item
20 You cannot assume that @code{_Bool} is a typedef; it might be a macro.
21 @item
22 Bit-fields of type @samp{bool} are not supported.  Portable code
23 should use @samp{unsigned int foo : 1;} rather than @samp{bool foo : 1;}.
24 @item
25 Casts and automatic conversions to @samp{bool} don't test against the
26 zero value or the null pointer, as they should.  Such casts should only
27 be used if the casted value is known to be equal to 0 or 1.
28 @end itemize