diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-09 18:10:09 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 12e05d464eb05202b00e65553d920984cb86123d (patch) | |
tree | 1b2242c3b7e7aad73f2aaf07b6b5212f58062a56 /include | |
parent | 1786b7b98d9841aab03703aa682cd41d27708716 (diff) |
Use ast_init
Diffstat (limited to 'include')
-rw-r--r-- | include/ast.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ast.h b/include/ast.h index f0020d7..3eb7bb6 100644 --- a/include/ast.h +++ b/include/ast.h @@ -26,6 +26,7 @@ typedef struct Binop Binop; typedef struct Scope Scope; typedef union { + void *data; FunctionDecl *func_decl; FunctionCall *func_call; LhsExpr *lhs_expr; @@ -116,7 +117,7 @@ typedef struct { } AstCompilerContext; Ast ast_none(); -void ast_init(Ast *self, AstValue value, AstType type); +void ast_init(Ast *self, void *value, AstType type); BufferView ast_get_name(Ast *self); CHECK_RESULT int funcdecl_init(FunctionDecl *self, ScopedAllocator *allocator); |