author | Alan Dipert
<alan@dipert.org> 2024-01-05 05:58:02 UTC |
committer | Alan Dipert
<alan@dipert.org> 2024-01-05 05:58:02 UTC |
parent | 9afba234e418a718e02a98a647abbee9035f9c40 |
ast.c | +1 | -1 |
ast.h | +0 | -3 |
diff --git a/ast.c b/ast.c index 334237a..bc2c453 100644 --- a/ast.c +++ b/ast.c @@ -3,6 +3,6 @@ struct type_node* ast_make_string(char *s) { struct type_node *n = malloc(sizeof(struct type_node)); n->type = NODE_STRING; - n->val = s; + n->node0 = s; return n; } diff --git a/ast.h b/ast.h index fd24d0f..1eb8786 100644 --- a/ast.h +++ b/ast.h @@ -15,9 +15,6 @@ enum TYPE_NODE { struct type_node { enum TYPE_NODE type; - char *name; - void *val; - /* Applicable operands */ void *node0; void *node1; };