More module work

This commit is contained in:
Krzosa Karol
2022-06-13 12:01:28 +02:00
parent b0553c38cf
commit 8bd5e9638f
9 changed files with 127 additions and 122 deletions

View File

@@ -592,9 +592,10 @@ register_ast_file(Intern_String filename, Ast_Module *module, B32 global_implici
}
}
if(!file){
file = exp_alloc_type(pctx->perm, Ast_File, AF_ZeroMemory);
file = exp_alloc_type(pctx->perm, Ast_File, AF_ZeroMemory);
file->filename = filename;
file->module = module;
file->scope = ast_decl_scope(0, pctx->heap, file);
file->module->files.add(file);
}