From 12e05d464eb05202b00e65553d920984cb86123d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Mar 2019 18:10:09 +0100 Subject: Use ast_init --- include/ast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3