aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorc+12023-05-04 15:10:59 -0400
committerc+12023-05-04 15:10:59 -0400
commita0f697a3059cc5173d60beaf9d3a513a0edfbda1 (patch)
treeee5854935ce33f315f232dc1a14ff432dc2ef126 /src
parent3d9113f59703fbddc34aa59bfe829272070f3ff8 (diff)
HALK HALJ HALK
Diffstat (limited to 'src')
-rw-r--r--src/tree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index 6867949..ab3a962 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -1,7 +1,15 @@
#include "include/tree.h"
TREE_t* tree_init(int type) {
+ // give the tree just enough room
TREE_t* tree = calloc(1, sizeof(struct TREE_STRUC));
+ tree->type = type;
+
+ tree->VAR_DEF_name = NULL;
+ tree->VAR_DEF_value = NULL;
+ tree->VAR_name = NULL;
+
+
return tree;
}