Home | History | Annotate | Download | only in lib

Lines Matching defs:_Bool

39        - <stdbool.h> must be #included before the '_Bool' type can be used.
41 - You cannot assume that _Bool is a typedef; it might be a macro.
46 - In C99, casts and automatic conversions to '_Bool' or 'bool' are
50 give the expected result when converted to _Bool' or 'bool'.
52 - C99 allows the use of (_Bool)0.0 in constant expressions, but
55 Also, it is suggested that programs use 'bool' rather than '_Bool';
64 # include <OS.h> /* defines bool but not _Bool */
70 # define _Bool bool
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".
101 # define _Bool signed char
103 /* With this compiler, trust the _Bool type if the compiler has it. */
108 typedef enum { false = 0, true = 1 } _Bool;
110 values of type '_Bool' might promote to 'int' or 'unsigned int'
111 (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
113 enum; this ensures that '_Bool' promotes to 'int'. */
114 typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool;
118 # define bool _Bool