From 59a08ae18e8c8b4b4240af268ce7da585c2fe6ed Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 2 Mar 2019 12:13:32 -0500 Subject: update documentation --- src/stdbool/__bool_true_false_are_defined.c | 9 +++++++++ src/stdbool/bool.c | 8 ++++++++ src/stdbool/false.c | 8 ++++++++ src/stdbool/true.c | 8 ++++++++ 4 files changed, 33 insertions(+) (limited to 'src') 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 + +/** indicate inclusion of **/ + #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 + +/** 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 + +/** 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 + +/** boolean true constant **/ + #define true (1) +/*** +is the boolean true value for the type TYPE(_Bool). +***/ + /* +VALUE_FIXED(1) STDC(199901) */ -- cgit v1.2.1