libsheepy

C lib for handling text files, strings and json like data structure with an object oriented system
git clone https://spartatek.se/git/libsheepy.git
Log | Files | Refs | README | LICENSE

commit a9543b431036410a9c8aa976cb504c072f178902
parent bd18e66127c60e0379a0f5a0d6db5bf85e03a251
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun, 22 Sep 2019 08:52:34 +0200

add yes, on defines for true and no, off defines for false

completion.txt      | 4 ++++
documentation.md    | 9 +++++++++
release/libsheepy.h | 6 ++++++
src/libsheepy.h     | 6 ++++++
4 files changed, 25 insertions(+)

Diffstat:
Mcompletion.txt | 4++++
Mdocumentation.md | 9+++++++++
Mrelease/libsheepy.h | 6++++++
Msrc/libsheepy.h | 6++++++
4 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/completion.txt b/completion.txt @@ -5,6 +5,10 @@ var const bool TRUE #undef FALSE /* avoid conflict with ncurses */ const bool FALSE +yes +on +no +off boolS(x) XSUCCESS XFAILURE diff --git a/documentation.md b/documentation.md @@ -36,6 +36,10 @@ var const bool TRUE #undef FALSE /* avoid conflict with ncurses */ const bool FALSE +yes +on +no +off boolS(x) XSUCCESS XFAILURE @@ -1375,6 +1379,11 @@ extern const bool TRUE; /** type bool false (glibc true is not bool), for use in generics */ #undef FALSE /* avoid conflict with ncurses */ extern const bool FALSE; +/** convenience defines */ +#define yes true +#define on true +#define no false +#define off false /** bool to const string: printf("%s\n", boolS(boolValue)); */ #define boolS(x) x ? "TRUE" : "FALSE" /* diff --git a/release/libsheepy.h b/release/libsheepy.h @@ -120,6 +120,12 @@ extern const bool TRUE; #undef FALSE /* avoid conflict with ncurses */ extern const bool FALSE; +/** convenience defines */ +#define yes true +#define on true +#define no false +#define off false + /** bool to const string: printf("%s\n", boolS(boolValue)); */ #define boolS(x) x ? "TRUE" : "FALSE" diff --git a/src/libsheepy.h b/src/libsheepy.h @@ -120,6 +120,12 @@ extern const bool TRUE; #undef FALSE /* avoid conflict with ncurses */ extern const bool FALSE; +/** convenience defines */ +#define yes true +#define on true +#define no false +#define off false + /** bool to const string: printf("%s\n", boolS(boolValue)); */ #define boolS(x) x ? "TRUE" : "FALSE"