//-------------------------------------------------------------------------- // Name Init // // //-------------------------------------------------------------------------- static void Init ( void ) { Arena_Init( &GlobalArena, 16384 ); Strings_Init(); DeclSpec_Init(); SymTab_Init(); ParseType_Init(); };
static void KnewGcContext(KonohaContext *kctx) { ((KonohaContextVar *)kctx)->gcContext = Arena_Init(kctx); GcManager *mng = (GcManager *)kctx->gcContext; mng->kctx = kctx; MSGC_SETUP(0); MSGC_SETUP(1); MSGC_SETUP(2); #ifdef GCSTAT global_gc_stat.fp = fopen("KONOHA_BMGC_INFO", "a"); #endif ((KonohaContextVar *)kctx)->gcContext = mng; }