Compiler restructure, now can call compiler to compile files, fix error where strict type
was equal it's original type, working on examples
This commit is contained in:
@@ -721,7 +721,7 @@ register_ast_file(Token *pos, String absolute_file_path, Ast_Module *module, B32
|
||||
For(pctx->files){
|
||||
if(string_compare(it->absolute_file_path, absolute_file_path)){
|
||||
if(module == it->module){
|
||||
log_info("%Q :: Returning registered file: %Q\n", module->absolute_file_path, absolute_file_path);
|
||||
// log_info("%Q :: Returning registered file: %Q\n", module->absolute_file_path, absolute_file_path);
|
||||
file = it;
|
||||
break;
|
||||
}
|
||||
@@ -732,7 +732,7 @@ register_ast_file(Token *pos, String absolute_file_path, Ast_Module *module, B32
|
||||
}
|
||||
|
||||
if(!file){
|
||||
log_info("%Q :: Registering file: %Q\n", module->absolute_file_path, absolute_file_path);
|
||||
// log_info("%Q :: Registering file: %Q\n", module->absolute_file_path, absolute_file_path);
|
||||
AST_NEW(File, FILE, 0, 0);
|
||||
file = result;
|
||||
file->absolute_file_path = absolute_file_path;
|
||||
|
||||
Reference in New Issue
Block a user