Ignore:
Timestamp:
May 21, 2008, 11:02:07 PM (16 years ago)
Author:
dai_9181
Message:

Projectクラスをリファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/src/Lexical/Source.cpp

    r603 r623  
    537537void BasicSource::DirectiveIncludeOrRequire( const std::string &mainSourceFilePath, const std::string &includeDirPath ){
    538538    extern HANDLE hHeap;
    539     extern char BasicCurDir[MAX_PATH];
    540539    int i,i2,i3,sw1,LineNum,FileLayer[255],layer,LastFileByte[255];
    541540    char temporary[MAX_PATH],temp2[MAX_PATH+255],*LayerDir[255];
     
    555554
    556555    //参照ディレクトリ
    557     LayerDir[0]=(char *)malloc(lstrlen(BasicCurDir)+1);
    558     lstrcpy(LayerDir[0],BasicCurDir);
     556    std::string mainSourceFileDir = Jenga::Common::Path::ExtractDirPath( mainSourceFilePath );
     557    LayerDir[0]=(char *)malloc(mainSourceFileDir.size()+1);
     558    lstrcpy(LayerDir[0],mainSourceFileDir.c_str());
    559559
    560560    for(i=0;;i++){
Note: See TracChangeset for help on using the changeset viewer.