Fix arrays in tuples error in C gen. Better api for getting unique name.

This commit is contained in:
Krzosa Karol
2023-02-10 09:04:27 +01:00
parent d41da94c80
commit 6f8a7ba6c8
3 changed files with 57 additions and 88 deletions

View File

@@ -273,9 +273,6 @@ resolve_everything_in_module(Ast_Module *module) {
resolve_name(file, decl->pos, decl->name);
if (decl->kind == AST_STRUCT) {
// if (decl->name == pctx->intern("CreateFileW"_s)) {
// __debugbreak();
// }
type_complete(decl->type_val);
}
}
@@ -377,11 +374,6 @@ GetTypeInfo :: (type: Type): *Type_Info
insert_builtin_type_into_scope(module, "Type"_s, pctx->type_type);
}
/*
Ast_Decl *namespace = core_create_namespace("name");
Ast_Decl *core_create_constant("name",
*/
{
Ast_Scope *scope = ast_decl_scope(&pctx->null_token, pctx->perm, get(&module->all_loaded_files, 0));
Ast_Decl * decl = ast_namespace(&pctx->null_token, scope, pctx->intern("Const"_s));