Changeset 623 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Source.cpp
- Timestamp:
- May 21, 2008, 11:02:07 PM (16 years ago)
- File:
-
- 1 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++){
Note:
See TracChangeset
for help on using the changeset viewer.