Changeset 477 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- Apr 6, 2008, 8:07:40 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler_Common
- Files:
-
- 1 added
- 7 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 -
trunk/ab5.0/abdev/BasicCompiler_Common/common.h
r467 r477 216 216 void ts(const char *msg); 217 217 void ts(const char *msg,const char *title); 218 void ts(const std::string msg); 218 219 void epi_check(); 219 220 void GetRelationalPath(char *path,char *dir); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Program.h
r472 r477 28 28 { 29 29 } 30 31 void Configurate(); 30 32 31 33 bool AnalysisCommandLines(); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/BoostSerializationSupport.cpp
r404 r477 485 485 486 486 #include <logger.h> 487 #include <Configuration.h> 487 488 488 489 template class Jenga::Common::BoostSerializationSupport<LoggerSetting>; 490 template class Jenga::Common::BoostSerializationSupport<Configuration>; -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Delegate.cpp
r465 r477 163 163 destSource = ""; 164 164 165 SourceTemplate sourceTemplate( "\\SubOperation\\templates\\delegate_class.tab" );165 SourceTemplate sourceTemplate( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\templates\\delegate_class.tab" ); 166 166 167 167 this->Iterator_Reset(); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Program.cpp
r472 r477 10 10 11 11 Program program; 12 13 void Program::Configurate() 14 { 15 Configuration configuration; 16 const std::string filePath = Jenga::Common::Environment::GetAppDir() + "\\config.xml"; 17 if( Jenga::Common::Path( filePath ).IsExistFile() ) 18 { 19 configuration.ReadXml( filePath ); 20 } 21 else 22 { 23 configuration.WriteXml( filePath ); 24 } 25 26 ActiveBasic::Common::Environment::SetAbdevRootPath( configuration.GetAbdevRootRelativePath() ); 27 } 12 28 13 29 bool Program::AnalysisCommandLines() -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp
r467 r477 614 614 615 615 if(sw1){ 616 sprintf(temp2,"%s %s", program.GetIncludeDir().c_str(), temporary );616 sprintf(temp2,"%s\\%s", program.GetIncludeDir().c_str(), temporary ); 617 617 lstrcpy(temporary,temp2); 618 618 } … … 624 624 else if(memcmp(buffer+i+1,"prompt",6)==0){ 625 625 i2=i+7; 626 sprintf(temporary,"%s basic\\prompt.sbp", program.GetIncludeDir().c_str() );626 sprintf(temporary,"%s\\basic\\prompt.sbp", program.GetIncludeDir().c_str() ); 627 627 } 628 628 else if(memcmp(buffer+i+1,"N88BASIC",8)==0){ 629 629 i2=i+9; 630 sprintf(temporary,"%s basic\\prompt.sbp", program.GetIncludeDir().c_str() );630 sprintf(temporary,"%s\\basic\\prompt.sbp", program.GetIncludeDir().c_str() ); 631 631 } 632 632 else if(memcmp(buffer+i+1,"console",7)==0){ … … 636 636 637 637 i2=i+8; 638 sprintf(temporary,"%s basic\\dos_console.sbp", program.GetIncludeDir().c_str() );638 sprintf(temporary,"%s\\basic\\dos_console.sbp", program.GetIncludeDir().c_str() ); 639 639 } 640 640 else continue;
Note:
See TracChangeset
for help on using the changeset viewer.