Lines Matching refs:_Bool
40 - <stdbool.h> must be #included before the '_Bool' type can be used.
42 - You cannot assume that _Bool is a typedef; it might be a macro.
44 - In C99, casts and automatic conversions to '_Bool' or 'bool' are
48 give the expected result when converted to _Bool' or 'bool'.
50 Also, it is suggested that programs use 'bool' rather than '_Bool';
59 # include <OS.h> /* defines bool but not _Bool */
67 typedef enum { false = 0, true = 1 } _Bool;
69 this, values of type '_Bool' may promote to 'int' or 'unsigned int'
70 (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
72 enum; this ensures that '_Bool' promotes to 'int'. */
75 /* If the compiler already has both 'bool' and '_Bool', we can assume they
78 typedef bool _Bool;
84 the built-in _Bool type is used. See
90 So we override the _Bool type.
92 Need to define _Bool ourselves. As 'signed char' or as an enum type?
94 "warning: _Bool is a keyword in ISO C99".
99 # define _Bool signed char
102 /* With this compiler, trust the _Bool type if the compiler has it. */
104 typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool;
108 #define bool _Bool