Changeset 477 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
- Timestamp:
- Apr 6, 2008, 8:07:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
r472 r477 93 93 void ts(const char *msg,const char *title){ 94 94 MessageBox(0,FormatEscapeSequenceStringToDefaultString(msg).c_str(),title,0); 95 } 96 void ts(const std::string msg) 97 { 98 ts(msg.c_str()); 95 99 } 96 100 … … 192 196 } 193 197 194 i3=(int)baseDirPath.size();i4=0; 198 std::string tempBaseDirPath = baseDirPath; 199 if( tempBaseDirPath[tempBaseDirPath.size()-1] != '\\' ) 200 { 201 tempBaseDirPath += "\\"; 202 } 203 204 i3=(int)tempBaseDirPath.size();i4=0; 195 205 while(i4<i2){ 196 206 for(i3--;;i3--){ 197 if( baseDirPath[i3-1]=='\\'){207 if(tempBaseDirPath[i3-1]=='\\'){ 198 208 i4++; 199 209 break; … … 201 211 } 202 212 } 203 memcpy(temporary, baseDirPath.c_str(),i3);213 memcpy(temporary,tempBaseDirPath.c_str(),i3); 204 214 temporary[i3]=0; 205 215 lstrcat(temporary,path+i); … … 601 611 pobj_nv->load(); 602 612 613 program.Configurate(); 614 603 615 if( !program.AnalysisCommandLines() ) 604 616 { … … 664 676 if( program.GetIncludeDir().size() == 0 ) 665 677 { 666 program.SetIncludeDir( Jenga::Common::Path::MakeFullPath( ".\\Include \\", baseDirPath) );678 program.SetIncludeDir( Jenga::Common::Path::MakeFullPath( ".\\Include", ActiveBasic::Common::Environment::GetAbdevRootPath() ) ); 667 679 } 668 680 else 669 681 { 670 682 // インクルードディレクトリを絶対パスに変更 671 program.SetIncludeDir( Jenga::Common::Path::MakeFullPath( program.GetIncludeDir(), baseDirPath) );683 program.SetIncludeDir( Jenga::Common::Path::MakeFullPath( program.GetIncludeDir(), ActiveBasic::Common::Environment::GetAbdevRootPath() ) ); 672 684 } 673 685
Note:
See TracChangeset
for help on using the changeset viewer.