blob: ab3a9629fa903e696c2cb3cf94eed2da0d38e5cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
|