From 7f29d50e4558a700b7611dc72e87e7922ac6a345 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 25 Aug 2025 00:31:25 +0900 Subject: feat: support static function --- src/ast.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index 0711e44..90fdeb0 100644 --- a/src/ast.h +++ b/src/ast.h @@ -29,6 +29,7 @@ struct Type { struct Type* base; int array_size; struct AstNode* def; + BOOL is_static; }; typedef struct Type Type; @@ -118,6 +119,7 @@ typedef enum AstNodeKind AstNodeKind; #define node_op __i1 #define node_stack_offset __i1 #define node_stack_size __i1 +#define node_function_is_static __i2 struct AstNode { AstNodeKind kind; -- cgit v1.2.3-70-g09d2