Ignore:
Timestamp:
Mar 27, 2008, 2:29:35 AM (16 years ago)
Author:
dai_9181
Message:

いくつかのグローバル変数をProgram/Debuggerクラスにまとめた。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/MakeExe.cpp

    r466 r467  
    6666
    6767    //プログラムをファイルから読み込む
    68     extern char SourceFileName[MAX_PATH];
    6968    compiler.GetObjectModule().SetCurrentSourceIndex( (int)compiler.GetObjectModule().GetSources().size() );
    7069    compiler.GetObjectModule().GetSources().push_back( BasicSource() );
    71     if( !compiler.GetObjectModule().GetCurrentSource().ReadFile( SourceFileName ) ){
    72         compiler.errorMessenger.Output(201,SourceFileName,-1);
     70    if( !compiler.GetObjectModule().GetCurrentSource().ReadFile( program.GetSourceFilePath() ) ){
     71        compiler.errorMessenger.Output(201,program.GetSourceFilePath(),-1);
    7372        goto EndCompile;
    7473    }
     
    8483    //////////////////////////
    8584    // 中間コードの生成を開始
    86     extern BOOL bClipCompileView;
    8785
    8886    //"最適化中..."
     
    158156            // コアモジュールをロードする
    159157            extern BOOL bDebugCompile;
    160             extern char szIncludeDir[MAX_PATH];
    161158
    162159            const char *coreFileName = "core.lib";
     
    172169            sprintf( coreFilePath, "..\\lib\\%s", coreFileName );
    173170#endif
    174             GetFullPath( coreFilePath, szIncludeDir );
     171            GetFullPath( coreFilePath, program.GetIncludeDir() );
    175172
    176173            Jenga::Common::Path path( coreFilePath );
     
    288285#endif
    289286}
    290 int MainThread(DWORD dummy){
    291     extern BOOL bDebugRun;
    292 
    293     if(bDebugRun){
     287void MainThread(void *dummy)
     288{
     289    if( program.IsDebugRun() )
     290    {
    294291        if( compiler.IsDebug() )
    295292        {
    296             bDebugRun=0;
    297 
    298293            //デバッグコンパイル
    299294            OutputExe();
    300 
    301             bDebugRun=1;
    302295        }
    303296
     
    312305        OutputExe();
    313306    }
    314 
    315     return 0;
    316 }
     307}
Note: See TracChangeset for help on using the changeset viewer.