From 63206b605c36140f2bd476e054b8318c8b08f472 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 26 Jun 2024 12:45:41 +0100 Subject: support multiple input filenames --- ast.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 0d5c190..ead9cc6 100644 --- a/ast.h +++ b/ast.h @@ -36,10 +36,11 @@ void astnode_append(AstNode *l, AstNode val); AstNode astnode_new_num(int n); AstNode astnode_new_list(); -AstNode astnode_new_ident(char *s); -AstNode astnode_new_string(char *s); +AstNode astnode_new_ident(const char *s); +AstNode astnode_new_string(const char *s); void astnode_disp(AstNode *a); +void astnode_free(AstNode *a); const char *ast_ty_to_str(AstTy ty); -- cgit v1.2.3