From c2939352858f8471fb69ae629948a259552231bc Mon Sep 17 00:00:00 2001 From: A404M Date: Mon, 7 Apr 2025 20:47:10 +0330 Subject: add comptime global --- src/compiler/ast-tree.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index d4bf807..3692ead 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -109,8 +109,14 @@ typedef struct AstTreeVariables { size_t size; } AstTreeVariables; +typedef struct AstTrees { + AstTree **data; + size_t size; +} AstTrees; + typedef struct AstTreeRoot { AstTreeVariables variables; + AstTrees trees; } AstTreeRoot; typedef struct AstTreeScope { @@ -277,7 +283,7 @@ bool isFunction(AstTree *value); bool isConst(AstTree *tree); bool isConstByValue(AstTree *tree); AstTree *makeTypeOf(AstTree *value); -bool typeIsEqual(AstTree *type0,AstTree *type1); +bool typeIsEqual(AstTree *type0, AstTree *type1); bool typeIsEqualBack(const AstTree *type0, const AstTree *type1); AstTree *getValue(AstTree *tree); -- cgit v1.2.3