Remove compiler ctx allocator
This commit is contained in:
5
Ink.jai
5
Ink.jai
@@ -237,7 +237,7 @@ run_compile_test :: (path : string, output_type : Output_Type = 0) -> Result, Co
|
||||
}
|
||||
}
|
||||
|
||||
result.info_text = builder_to_string(*sb,, ctx.allocator);
|
||||
result.info_text = builder_to_string(*sb);
|
||||
}
|
||||
|
||||
if output_type & .StdOut {
|
||||
@@ -369,8 +369,7 @@ make_test_case :: (path : string, stage_flags : Stage_Flags, allocator := contex
|
||||
run_test_new :: (file_path : string, stage_flags : Stage_Flags, results : *[..]Result, output_type : Output_Type = 0) {
|
||||
ctx : Compiler_Context;
|
||||
|
||||
ctx.allocator = make_arena(Megabytes(128));
|
||||
ctx.file = make_file(*ctx, file_path,, ctx.allocator);
|
||||
ctx.file = make_file(*ctx, file_path);
|
||||
|
||||
result : Result;
|
||||
if stage_flags & .Lexer {
|
||||
|
||||
Reference in New Issue
Block a user