Changeset 623 in dev for trunk/ab5.0/abdev/ab_common
- Timestamp:
- May 21, 2008, 11:02:07 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/ab_common/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Source.cpp
r603 r623 537 537 void BasicSource::DirectiveIncludeOrRequire( const std::string &mainSourceFilePath, const std::string &includeDirPath ){ 538 538 extern HANDLE hHeap; 539 extern char BasicCurDir[MAX_PATH];540 539 int i,i2,i3,sw1,LineNum,FileLayer[255],layer,LastFileByte[255]; 541 540 char temporary[MAX_PATH],temp2[MAX_PATH+255],*LayerDir[255]; … … 555 554 556 555 //参照ディレクトリ 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()); 559 559 560 560 for(i=0;;i++){ -
trunk/ab5.0/abdev/ab_common/src/ResourceManager/ResourceManager.cpp
r622 r623 18 18 19 19 20 21 extern char BasicCurDir[MAX_PATH];22 20 int i2,i3; 23 21 char temp2[MAX_PATH]; … … 40 38 // 改行コードのCRLFをLFに変換 41 39 Jenga::Common::StringReplace( buffer, "\r\n", "\n" ); 40 41 std::string baseDir = Jenga::Common::Path::ExtractDirPath( resourceFilePath ); 42 42 43 43 i2=0; … … 71 71 temp2[i3]=buffer[i2]; 72 72 } 73 lstrcpy( temp2, Jenga::Common::Directory( BasicCurDir ).GetFullPath( temp2 ).c_str() );73 lstrcpy( temp2, Jenga::Common::Directory( baseDir ).GetFullPath( temp2 ).c_str() ); 74 74 75 75 ResourceItem item;
Note:
See TracChangeset
for help on using the changeset viewer.