Change name Scratch_Scope to Scoped_Arena

This commit is contained in:
Krzosa Karol
2023-03-31 17:39:00 +02:00
parent 277404fe95
commit b2e8012afa
12 changed files with 33 additions and 32 deletions

View File

@@ -80,7 +80,7 @@ token_error(Token *t, String error_val) {
CORE_Static void
lex_parse_u64(Core_Ctx *lexer, Token *t, S64 base) {
Scratch_Scope _scope(lexer->scratch);
Scoped_Arena _scope(lexer->scratch);
Set_BigInt_Arena(lexer->scratch);
t->kind = TK_Integer;
@@ -692,7 +692,7 @@ lex_restream(Core_Ctx *lexer, String istream, String file) {
lexer->stream.line_begin = istream.str;
lexer->stream.file = lexer->intern(file);
Scratch_Scope _scope(lexer->scratch);
Scoped_Arena _scope(lexer->scratch);
lexer->stream.indent_stack.allocator = lexer->scratch;
lexer->stream.indent_stack.add(&lexer->same_scope_token);
lex__stream(lexer);