Introduce the allocator stuff again

This commit is contained in:
Krzosa Karol
2022-12-31 16:51:01 +01:00
parent e20edaa3a2
commit 55515ff420
12 changed files with 71 additions and 44 deletions

View File

@@ -98,7 +98,7 @@ parse_init(Parse_Ctx *ctx, Arena *perm_allocator) {
CORE_Static void
begin_compilation() {
init_ctx_time_begin = os_time();
Parse_Ctx *ctx = arena_push_type(&pernament_arena, Parse_Ctx, AF_ZeroMemory);
Parse_Ctx *ctx = allocate_struct(&pernament_arena, Parse_Ctx);
parse_init(ctx, &pernament_arena);
init_ctx_time_end = os_time();
}