diff --git a/core_compiler.h b/core_compiler.h index 78df2e3..f148a9d 100644 --- a/core_compiler.h +++ b/core_compiler.h @@ -4,6 +4,7 @@ struct Ast_File_Namespace; struct Ast_File; struct Ast_Module; struct Ast_Type; +struct Ast; enum Token_Kind{ TK_End, @@ -195,3 +196,5 @@ function void lex_init(Allocator *token_string_arena, Allocator *map_allocator, function String compile_to_c_code(); function Ast_Module *ast_module(Token *pos, Intern_String filename); function void insert_builtin_types_into_scope(Ast_Scope *p); +function void insert_into_scope(Ast_Scope *scope, Ast_Decl *decl); +function Ast_Type *type_incomplete(Ast *ast); \ No newline at end of file diff --git a/core_parsing.cpp b/core_parsing.cpp index d06889c..f9f9bed 100644 --- a/core_parsing.cpp +++ b/core_parsing.cpp @@ -883,9 +883,6 @@ parse_decl(B32 is_global){ return result; } -function void insert_into_scope(Ast_Scope *scope, Ast_Decl *decl); -function Ast_Type *type_incomplete(Ast *ast); - function void parse_file(Ast_File *file){ assert(file);