[BACK]Return to stdbool.h CVS log [TXT][DIR] Up to [local] / src / include

Annotation of src/include/stdbool.h, Revision 1.1

1.1     ! espie       1: /* $OpenBSD$ */
        !             2: #ifndef        _STDBOOL_H_
        !             3: #define        _STDBOOL_H_
        !             4:
        !             5: /* `_Bool' type must promote to `int' or `unsigned int'. */
        !             6: typedef enum {
        !             7:        false = 0,
        !             8:        true = 1
        !             9: } _Bool;
        !            10:
        !            11: /* And those constants must also be available as macros. */
        !            12: #define        false   false
        !            13: #define        true    true
        !            14:
        !            15: /* User visible type `bool' is provided as a macro which may be redefined */
        !            16: #define bool _Bool
        !            17:
        !            18: /* Inform that everything is fine */
        !            19: #define __bool_true_false_are_defined 1
        !            20:
        !            21: #endif /* _STDBOOL_H_ */