Change name Scratch_Scope to Scoped_Arena
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user