Ignore:
Timestamp:
Apr 24, 2007, 3:17:29 AM (17 years ago)
Author:
dai_9181
Message:

名前空間機能をグローバル関数に適用。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/Compile_ProcOp.cpp

    r95 r100  
    219219    extern char *basbuf;
    220220    extern HANDLE hHeap;
    221     extern UserProc **ppSubHash;
     221    extern GlobalProc **ppSubHash;
    222222    extern BOOL bDebugCompile;
    223223    int i3,i4;
     
    830830    temporary[0]=0;
    831831    lstrcat( temporary, "------------------------------------------------------------------\n" );
    832     sprintf( temporary + lstrlen(temporary), "【 %s のコード情報】\n", userProc.GetFullName().c_str() );
     832    sprintf( temporary + lstrlen(temporary), "【 %s のコード情報】\n", userProc.GetName().c_str() );
    833833    sprintf( temporary + lstrlen(temporary), "code size: %d bytes\n", userProc.GetCodeSize() );
    834834    lstrcat( temporary, "------------------------------------------------------------------\n" );
     
    837837}
    838838void CompileLocal(){
    839     extern UserProc **ppSubHash;
     839    extern GlobalProc **ppSubHash;
    840840    int i2;
    841     UserProc *pUserProc;
    842841
    843842    extern BOOL bDll;
    844843    if(bDll){
    845844        //DLLの場合はグローバル変数を初期化するための関数を一番初めにコンパイルする
    846         pUserProc=GetSubHash("_System_InitDllGlobalVariables");
     845        UserProc *pUserProc=GetSubHash("_System_InitDllGlobalVariables");
    847846        if(pUserProc){
    848847            CompileBufferInProcedure( *pUserProc );
     
    865864
    866865repeat:
     866    GlobalProc *pGlobalProc;
    867867    for(i2=0;i2<MAX_HASH;i2++){
    868         pUserProc=ppSubHash[i2];
    869         while(pUserProc){
    870             CompileBufferInProcedure( *pUserProc );
    871             pUserProc=pUserProc->pNextData;
     868        pGlobalProc=ppSubHash[i2];
     869        while(pGlobalProc){
     870            CompileBufferInProcedure( *pGlobalProc );
     871            pGlobalProc=pGlobalProc->pNextData;
    872872        }
    873873    }
     
    885885        //プロシージャコンパイルによって、プロシージャコンパイルが必要になる場合
    886886        for(i2=0;i2<MAX_HASH;i2++){
    887             pUserProc=ppSubHash[i2];
    888             while(pUserProc){
    889                 CompileBufferInProcedure( *pUserProc );
    890                 pUserProc=pUserProc->pNextData;
     887            pGlobalProc=ppSubHash[i2];
     888            while(pGlobalProc){
     889                CompileBufferInProcedure( *pGlobalProc );
     890                pGlobalProc=pGlobalProc->pNextData;
    891891            }
    892892        }
Note: See TracChangeset for help on using the changeset viewer.