aboutsummaryrefslogtreecommitdiff
path: root/include/dtree/dtree.h
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2016-12-13 02:03:04 +0100
committerKatharina Fey <kookie@spacekookie.de>2019-06-04 20:21:53 +0200
commit1662652061ed68fcddf3789bf5f20087510b101c (patch)
treeb700100b0f55b1018688500f43d26b86948bb885 /include/dtree/dtree.h
parent69fc0d982de64a7d2fdad063fd24a44b16fcab11 (diff)
Adding support for boolean nodes as well as long long supports via compile options
Diffstat (limited to '')
-rw-r--r--include/dtree/dtree.h5
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__