Changeset 467 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp
- Timestamp:
- Mar 27, 2008, 2:29:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp
r465 r467 556 556 void BasicSource::DirectiveIncludeOrRequire(){ 557 557 extern HANDLE hHeap; 558 extern char szIncludeDir[MAX_PATH];559 558 extern char BasicCurDir[MAX_PATH]; 560 559 int i,i2,i3,sw1,LineNum,FileLayer[255],layer,LastFileByte[255]; … … 572 571 573 572 // メインソースコード 574 extern char SourceFileName[MAX_PATH]; 575 FileLayer[layer] = includedFilesRelation.AddFile( SourceFileName ); 573 FileLayer[layer] = includedFilesRelation.AddFile( program.GetSourceFilePath() ); 576 574 577 575 //参照ディレクトリ … … 616 614 617 615 if(sw1){ 618 sprintf(temp2,"%s%s", szIncludeDir,temporary);616 sprintf(temp2,"%s%s", program.GetIncludeDir().c_str(), temporary ); 619 617 lstrcpy(temporary,temp2); 620 618 } … … 626 624 else if(memcmp(buffer+i+1,"prompt",6)==0){ 627 625 i2=i+7; 628 sprintf(temporary,"%sbasic\\prompt.sbp", szIncludeDir);626 sprintf(temporary,"%sbasic\\prompt.sbp", program.GetIncludeDir().c_str() ); 629 627 } 630 628 else if(memcmp(buffer+i+1,"N88BASIC",8)==0){ 631 629 i2=i+9; 632 sprintf(temporary,"%sbasic\\prompt.sbp", szIncludeDir);630 sprintf(temporary,"%sbasic\\prompt.sbp", program.GetIncludeDir().c_str() ); 633 631 } 634 632 else if(memcmp(buffer+i+1,"console",7)==0){ … … 638 636 639 637 i2=i+8; 640 sprintf(temporary,"%sbasic\\dos_console.sbp", szIncludeDir);638 sprintf(temporary,"%sbasic\\dos_console.sbp", program.GetIncludeDir().c_str() ); 641 639 } 642 640 else continue;
Note:
See TracChangeset
for help on using the changeset viewer.