Fix arrays in tuples error in C gen. Better api for getting unique name.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user