예제 #1
0
파일: comp.c 프로젝트: tmikov/cfe99-old
//--------------------------------------------------------------------------
// Name         Init
//
//
//--------------------------------------------------------------------------
static void Init ( void )
{
  Arena_Init( &GlobalArena, 16384 );

  Strings_Init();
  DeclSpec_Init();
  SymTab_Init();
  ParseType_Init();
};
예제 #2
0
파일: MSGC.c 프로젝트: myoan/minikonoha
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;
}