Allocator cleanup + '_' skips tests

This commit is contained in:
Krzosa Karol
2023-03-29 08:32:24 +02:00
parent 7da3e27c05
commit b0633c84f4
6 changed files with 31 additions and 33 deletions

View File

@@ -209,11 +209,11 @@ lex_is_scope(Token *t) {
CORE_Static void
lex_add_token(Core_Ctx *ctx, Token *token) {
Token *top = (Token *)arena_push_size(ctx->stage_arena, sizeof(Token));
Token *top = (Token *)arena_push_size(&ctx->token_arena, sizeof(Token));
*top = *token;
ctx->tokens.len += 1;
ctx->tokens.cap += 1;
ctx->tokens.data = (Token *)ctx->stage_arena->memory.data;
ctx->tokens.data = (Token *)ctx->token_arena.memory.data;
}
CORE_Static void