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/BasicCompiler32/MakePeHdr.cpp

    r465 r467  
    104104    extern DWORD ImageBase;
    105105    extern char *basbuf;
    106     extern char OutputFileName[MAX_PATH];
    107106
    108107    int i,i2,i3,i4,i5;
     
    493492
    494493        // 格納先ディレクトリを作る
    495         Jenga::Common::Path path( OutputFileName );
     494        Jenga::Common::Path path( program.GetOutputFilePath() );
    496495        Jenga::Common::Directory dir( path.GetDriveName() + path.GetDirName(), true );
    497496
    498497        // 書き込む
    499         if( !compiler.GetObjectModule().Write( OutputFileName ) )
     498        if( !compiler.GetObjectModule().Write( program.GetOutputFilePath() ) )
    500499        {
    501500            MessageBox(0,"XML書き込みに失敗","test",0);
     
    548547        hLib=LoadLibrary( pDllProc->GetDllFileName().c_str() );
    549548        if(!hLib){
    550             extern char OutputFileName[MAX_PATH];
    551549            char temp2[MAX_PATH],temp3[MAX_PATH];
    552             _splitpath(OutputFileName,temp2,temp3,NULL,NULL);
     550            _splitpath(program.GetOutputFilePath().c_str(),temp2,temp3,NULL,NULL);
    553551            lstrcat(temp2,temp3);
    554552            lstrcpy(temp3,pDllProc->GetDllFileName().c_str());
     
    599597
    600598    if(bUse_ExportSection){
    601         _splitpath(OutputFileName,NULL,NULL,lpExportNames,temporary);
     599        _splitpath(program.GetOutputFilePath().c_str(),NULL,NULL,lpExportNames,temporary);
    602600        lstrcat(lpExportNames,temporary);
    603601        ExportNamesLength=lstrlen(lpExportNames)+1;
     
    14121410
    14131411
    1414     hFile=CreateFile(OutputFileName,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
     1412    hFile=CreateFile(program.GetOutputFilePath().c_str(),GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
    14151413    if(hFile==INVALID_HANDLE_VALUE){
    1416         compiler.errorMessenger.Output(53,OutputFileName,-1);
     1414        compiler.errorMessenger.Output(53,program.GetOutputFilePath().c_str(),-1);
    14171415        goto EndWriteOpcode;
    14181416    }
Note: See TracChangeset for help on using the changeset viewer.