From 9ee22abbd22a9aadbc1159a119c182c762c5e2fc Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Thu, 29 Sep 2022 17:10:56 +0200 Subject: [PATCH] Misc --- core_compiler.h | 3 +++ core_parsing.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) 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);