Changeset 467 in dev for trunk/ab5.0/abdev/BasicCompiler32


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

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

Location:
trunk/ab5.0/abdev/BasicCompiler32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler32/BasicCompiler.vcproj

    r465 r467  
    13541354                    </File>
    13551355                    <File
    1356                         RelativePath="..\BasicCompiler_Common\src\Program.cpp"
    1357                         >
    1358                     </File>
    1359                     <File
    13601356                        RelativePath="..\BasicCompiler_Common\src\Source.cpp"
    13611357                        >
     
    13781374                    </File>
    13791375                </Filter>
     1376            </Filter>
     1377            <Filter
     1378                Name="Application Classes"
     1379                >
     1380                <File
     1381                    RelativePath="..\BasicCompiler_Common\src\Program.cpp"
     1382                    >
     1383                </File>
    13801384            </Filter>
    13811385        </Filter>
     
    15801584                </File>
    15811585            </Filter>
     1586            <Filter
     1587                Name="Debugger Classes"
     1588                >
     1589                <File
     1590                    RelativePath="..\BasicCompiler_Common\include\Debugger.h"
     1591                    >
     1592                </File>
     1593            </Filter>
    15821594        </Filter>
    15831595        <Filter
  • 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    }
  • trunk/ab5.0/abdev/BasicCompiler32/stdafx.h

    r465 r467  
    55#include <vector>
    66#include <fstream>
     7#include <iostream>
    78
    89#include <windows.h>
     
    1415#include <limits.h>
    1516#include <shlobj.h>
    16 #include <iostream>
     17#include <process.h>
    1718
    1819//boost libraries
     
    3031#include <Program.h>
    3132#include <Compiler.h>
     33#include <Debugger.h>
Note: See TracChangeset for help on using the changeset viewer.