Home | History | Annotate | Download | only in lib

Lines Matching defs:_Bool

42        - <stdbool.h> must be #included before the '_Bool' type can be used.
44 - You cannot assume that _Bool is a typedef; it might be a macro.
49 - In C99, casts and automatic conversions to '_Bool' or 'bool' are
53 give the expected result when converted to _Bool' or 'bool'.
55 Also, it is suggested that programs use 'bool' rather than '_Bool';
64 # include <OS.h> /* defines bool but not _Bool */
72 typedef enum { false = 0, true = 1 } _Bool;
74 this, values of type '_Bool' may promote to 'int' or 'unsigned int'
75 (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
77 enum; this ensures that '_Bool' promotes to 'int'. */
80 /* If the compiler already has both 'bool' and '_Bool', we can assume they
83 typedef bool _Bool;
89 the built-in _Bool type is used. See
95 So we override the _Bool type.
97 Need to define _Bool ourselves. As 'signed char' or as an enum type?
99 "warning: _Bool is a keyword in ISO C99".
106 # define _Bool signed char
108 /* With this compiler, trust the _Bool type if the compiler has it. */
110 typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool;
114 #define bool _Bool