diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-15 06:00:49 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-15 06:01:16 +0330 |
commit | 9036fde1551773d5435682174c165edb99747cb7 (patch) | |
tree | 1053b24d5fc4f161937dd71026af36e44fddcd80 /src/compiler/ast-tree.h | |
parent | abeb4953354b7afb57ea71cf63184afae2b30edd (diff) |
change variable lookup system
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index f6d9394..d95435b 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -290,7 +290,8 @@ typedef struct AstTreeWhile { typedef struct AstTreeSetTypesHelper { AstTree *lookingType; AstTreeVariables dependencies; - AstTreeVariables variables; + AstTreeVariables *variables; + size_t variables_size; AstTreeRoot *root; AstTreeWhile **loops; size_t loops_size; @@ -555,7 +556,7 @@ bool setTypesBuiltinCFunction(AstTree *tree, AstTreeSetTypesHelper helper, bool setTypesBuiltinInsert(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunctionCall *functionCall); bool setTypesTypeArray(AstTree *tree, AstTreeSetTypesHelper helper); -bool setTypesAstFunction(AstTreeFunction *function,AstTree *tree, +bool setTypesAstFunction(AstTreeFunction *function, AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesAstVariable(AstTreeVariable *variable, |