diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/stdbool/__bool_true_false_are_defined.c | 9 | ||||
| -rw-r--r-- | src/stdbool/bool.c | 8 | ||||
| -rw-r--r-- | src/stdbool/false.c | 8 | ||||
| -rw-r--r-- | src/stdbool/true.c | 8 |
4 files changed, 33 insertions, 0 deletions
diff --git a/src/stdbool/__bool_true_false_are_defined.c b/src/stdbool/__bool_true_false_are_defined.c index 65d76ee0..a311586b 100644 --- a/src/stdbool/__bool_true_false_are_defined.c +++ b/src/stdbool/__bool_true_false_are_defined.c @@ -1,6 +1,15 @@ #include <stdbool.h> + +/** indicate inclusion of <stdbool.h> **/ + #define __bool_true_false_are_defined (1) +/*** +is set to indicate that the standard header HEADER(stdbool.h) has been included, +and the definitions of MACRO(bool), MACRO(true), and MACRO(false) are available. +***/ + /* +VALUE_FIXED(1) STDC(199901) */ diff --git a/src/stdbool/bool.c b/src/stdbool/bool.c index 557a1454..9f8bc863 100644 --- a/src/stdbool/bool.c +++ b/src/stdbool/bool.c @@ -1,6 +1,14 @@ #include <stdbool.h> + +/** boolean type **/ + #define bool _Bool +/*** +provides an alternative spelling for the type TYPE(_Bool). +***/ + /* +VALUE_FIXED(TYPE(_Bool)) STDC(199901) */ diff --git a/src/stdbool/false.c b/src/stdbool/false.c index 15f292d6..0259936d 100644 --- a/src/stdbool/false.c +++ b/src/stdbool/false.c @@ -1,6 +1,14 @@ #include <stdbool.h> + +/** boolean false constant **/ + #define false (0) +/*** +is the false value for the type TYPE(_Bool). +***/ + /* +VALUE_FIXED(0) STDC(199901) */ diff --git a/src/stdbool/true.c b/src/stdbool/true.c index da515b7c..b6288b05 100644 --- a/src/stdbool/true.c +++ b/src/stdbool/true.c @@ -1,6 +1,14 @@ #include <stdbool.h> + +/** boolean true constant **/ + #define true (1) +/*** +is the boolean true value for the type TYPE(_Bool). +***/ + /* +VALUE_FIXED(1) STDC(199901) */ |
