diff options
author | Katharina Fey <kookie@spacekookie.de> | 2016-12-13 02:03:04 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-06-04 20:21:53 +0200 |
commit | 1662652061ed68fcddf3789bf5f20087510b101c (patch) | |
tree | b700100b0f55b1018688500f43d26b86948bb885 /include/dtree/dtree.h | |
parent | 69fc0d982de64a7d2fdad063fd24a44b16fcab11 (diff) |
Adding support for boolean nodes as well as long long supports via compile options
Diffstat (limited to '')
-rw-r--r-- | include/dtree/dtree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/dtree/dtree.h b/include/dtree/dtree.h index b74ea33..5193aba 100644 --- a/include/dtree/dtree.h +++ b/include/dtree/dtree.h @@ -22,6 +22,7 @@ #define _DYNTREE_H_ #include <memory.h> +#include <stdbool.h> /* A helpful macro that can take care of \0 termated strings! */ #define REAL_STRLEN(str) (strlen(str) + 1) @@ -34,7 +35,7 @@ extern "C" { /* Type that determines what data is stored inside a tree-node */ typedef enum dt_uni_t { - UNSET, LITERAL, NUMERIC, LIST, PAIR, POINTER + UNSET, LITERAL, NUMERIC, LONG_NUMERIC, BOOLEAN, LIST, PAIR, POINTER } dt_uni_t; @@ -45,7 +46,7 @@ typedef struct dtree { short copy; union { char *literal; - bool bool; + bool boolean; struct dtree *(*list); void *pointer; #ifdef __LONG_LONG_SUPPORT__ |