diff options
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,10 +1,10 @@ +#include "node.h" + #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> -#include "node.h" - /*constructor*/ node* mknode(str) char *str; @@ -15,6 +15,8 @@ char *str; p->name = strdup(str); p->next = NULL; + p->var_type = -1; + return p; } |