Remove pernament arena
This commit is contained in:
@@ -4,7 +4,7 @@ Fix backlog
|
||||
- [ ] Fix invalid error message: AlmostLinearToSRGB :: (a: Color);; return {sqrtf(a.r), sqrtf(a.g), sqrtf(a.b), a.a}
|
||||
- [ ] Fix untyped literal going to codegen stage, example in arms_race
|
||||
- [ ] Fix and decide what to do when initializing global variable using not constants C:/AProgramming/cparse/compiler/modules/Language.core:180:28: error: initializer element is not a compile-time constant
|
||||
- [ ] Fix adressing void is possible, maybe make it possible to address void
|
||||
- [ ] Fix adressing void is possible, mayp make it possible to address void
|
||||
using bytes
|
||||
* a.void + 10
|
||||
* a.void[10]
|
||||
@@ -288,6 +288,9 @@ For modules it's a bit different cause they should be distributed as valid.
|
||||
int main(int argument_count, char **arguments){
|
||||
thread_ctx_init();
|
||||
|
||||
Arena arena = {};
|
||||
arena_init(&arena, "Pernament arena"_s);
|
||||
|
||||
Scratch scratch;
|
||||
Array<String> args = {scratch};
|
||||
for(int i = 1; i < argument_count; i+=1){
|
||||
@@ -344,17 +347,17 @@ int main(int argument_count, char **arguments){
|
||||
Array<OS_File_Info> tests = os_list_dir(scratch, "tests"_s);
|
||||
For(examples){
|
||||
if(it.is_directory) continue;
|
||||
compile_file(it.absolute_path, COMPILE_AND_RUN | COMPILE_TESTING);
|
||||
compile_file(&arena, it.absolute_path, COMPILE_AND_RUN | COMPILE_TESTING);
|
||||
}
|
||||
For(tests){
|
||||
if(it.is_directory) continue;
|
||||
compile_file(it.absolute_path, COMPILE_AND_RUN | COMPILE_TESTING);
|
||||
compile_file(&arena, it.absolute_path, COMPILE_AND_RUN | COMPILE_TESTING);
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
String program_name = string_from_cstring(arguments[1]);
|
||||
compile_file(program_name, COMPILE_PRINT_STATS);
|
||||
compile_file(&arena, program_name, COMPILE_PRINT_STATS);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user