Working on simplifying configurable allocation scheme
This commit is contained in:
@@ -178,7 +178,7 @@ ast_array(Token *pos, Ast_Expr *expr){
|
||||
}
|
||||
|
||||
CORE_Static Ast_Scope *
|
||||
begin_decl_scope(Arena *scratch, Token *pos){
|
||||
begin_decl_scope(Allocator *scratch, Token *pos){
|
||||
AST_NEW(Scope, SCOPE, pos, AST_DECL);
|
||||
result->file = pctx->currently_parsed_file;
|
||||
result->module = pctx->currently_parsed_file->module;
|
||||
@@ -195,7 +195,7 @@ finalize_decl_scope(Ast_Scope *scope){
|
||||
}
|
||||
|
||||
CORE_Static Ast_Scope *
|
||||
begin_stmt_scope(Arena *scratch, Token *pos){
|
||||
begin_stmt_scope(Allocator *scratch, Token *pos){
|
||||
AST_NEW(Scope, SCOPE, pos, AST_STMT);
|
||||
result->stmts = {scratch};
|
||||
result->file = pctx->currently_parsed_file;
|
||||
@@ -263,7 +263,7 @@ ast_type(Token *pos, Intern_String name, Ast_Type *type){
|
||||
}
|
||||
|
||||
CORE_Static Ast_Scope *
|
||||
ast_decl_scope(Token *pos, Arena *allocator, Ast_File *file){
|
||||
ast_decl_scope(Token *pos, Allocator *allocator, Ast_File *file){
|
||||
AST_NEW(Scope, SCOPE, pos, AST_DECL);
|
||||
result->file = file;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user