diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-04-22 02:34:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | a76ba1b33e397638c4209dd77e6073e423ac07a8 (patch) | |
tree | 0ef62209546ba91d53a2fabb54f3b8ac9dcfafdf /src/ast.c | |
parent | 6a9466da5377d0bc73c7e5aa48deca3740d3de6f (diff) |
Start on bytecode. Commit before os switch
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -171,7 +171,7 @@ void scope_resolve(Scope *self, AstCompilerContext *context) { Ast **ast; Ast **ast_end; - ast = buffer_start(&self->ast_objects); + ast = buffer_begin(&self->ast_objects); ast_end = buffer_end(&self->ast_objects); context->scope = self; for(; ast != ast_end; ++ast) { @@ -339,7 +339,7 @@ static void funccall_resolve(Ast *self, AstCompilerContext *context) { throw(AST_ERR); } - ast = buffer_start(&func_call->args); + ast = buffer_begin(&func_call->args); ast_end = buffer_end(&func_call->args); for(; ast != ast_end; ++ast) { ast_resolve(*ast, context); |