Replacing core allocation stuff, still need to rewrite map and token
structures
This commit is contained in:
@@ -586,7 +586,7 @@ lex__stream(Lexer *lexer){
|
||||
}
|
||||
|
||||
function Lexer
|
||||
lex_make(Allocator *token_string_arena, Allocator *map_allocator){
|
||||
lex_make(Arena *token_string_arena, Arena *map_allocator){
|
||||
Lexer result = {};
|
||||
lex_init(token_string_arena, map_allocator, &result);
|
||||
return result;
|
||||
@@ -606,7 +606,7 @@ lex_restream(Lexer *lexer, String istream, String file){
|
||||
}
|
||||
|
||||
function Lexer
|
||||
lex_stream(Allocator *token_string_arena, Allocator *map_allocator, String istream, String file){
|
||||
lex_stream(Arena *token_string_arena, Arena *map_allocator, String istream, String file){
|
||||
Lexer result = lex_make(token_string_arena, map_allocator);
|
||||
lex_restream(&result, istream, file);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user