diff --git a/base_data_structures.cpp b/base_data_structures.cpp index d4adf5c..58f5f8f 100644 --- a/base_data_structures.cpp +++ b/base_data_structures.cpp @@ -296,6 +296,7 @@ CORE_Static Intern_String //----------------------------------------------------------------------------- // Array List // @todo(krzosa): If even one item got removed from block +// @! Make List api more convenient list.add // the block should go on free list //----------------------------------------------------------------------------- const int LIST_DEFAULT_BLOCK_SIZE = 32; @@ -348,7 +349,6 @@ struct List{ result.node_index = -1; return ++result; } - Iter end() { return{}; } friend bool operator!=(Iter &a, Iter &b) { return a.item != b.item; } }; diff --git a/core_compiler.cpp b/core_compiler.cpp index ca48b63..d9e0e93 100644 --- a/core_compiler.cpp +++ b/core_compiler.cpp @@ -1,6 +1,6 @@ -CORE_Static void -core_init_compiler(Core_Ctx *ctx, Allocator *allocator) { +//apifn +static void core_init_compiler(Core_Ctx *ctx, Allocator *allocator) { ctx->time.init_context = os_time(); pctx = ctx; @@ -158,8 +158,8 @@ pctx->op_info_table[19] = {pctx->intern("!"_s), "NOT"_s, TK_Not, 0, 1}; ctx->time.init_context = os_time() - ctx->time.init_context; } -CORE_Static void -core_bootstrap_compiler(Allocator *allocator) { +//apifn +static void core_bootstrap_compiler(Allocator *allocator) { Core_Ctx *ctx = allocate_struct(allocator, Core_Ctx); core_init_compiler(ctx, allocator); } @@ -189,7 +189,6 @@ parse_all_modules() { if (module != pctx->language_base_module) { add(pctx->perm, &module->implicit_imports, (Ast_Scope *)pctx->language_base_module); - // module->implicit_imports.add(pctx->language_base_module); } module->state = MODULE_PARSED;