Changeset 276 in dev for trunk/abdev/BasicCompiler_Common/Compile.cpp
- Timestamp:
- Aug 12, 2007, 1:25:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Compile.cpp
r263 r276 81 81 } 82 82 83 84 void NextLine(void){85 extern int obp;86 87 extern SourceLines oldSourceLines;88 if( oldSourceLines.size() )89 {90 if( oldSourceLines.back().GetNativeCodePos() == obp )91 {92 oldSourceLines.back().SetSourceCodePos( cp );93 return;94 }95 }96 97 extern BOOL bDebugSupportProc;98 extern BOOL bSystemProc;99 DWORD sourceLineType = 0;100 if( bDebugSupportProc )101 {102 sourceLineType |= CODETYPE_DEBUGPROC;103 }104 if( bSystemProc )105 {106 sourceLineType |= CODETYPE_SYSTEMPROC;107 }108 oldSourceLines.push_back( SourceLine( (long)oldSourceLines.size(), obp, cp, sourceLineType ) );109 }110 111 83 void ChangeOpcode(char *Command){ 112 84 extern HANDLE hHeap; … … 121 93 if(Command[0]=='*'&&IsVariableTopChar(Command[1])){ 122 94 //Goto先ラベル 123 extern int obp; 124 compiler.codeGenerator.gotoLabels.push_back( GotoLabel( Command + 1, obp ) ); 95 compiler.codeGenerator.gotoLabels.push_back( GotoLabel( Command + 1, compiler.codeGenerator.GetNativeCodeSize() ) ); 125 96 126 97 //書き込みスケジュール … … 475 446 OpcodeDim(Command+2,0); 476 447 477 // ネイティブコードバッファの再確保478 ReallocNativeCodeBuffer();479 480 448 if(basbuf[cp]=='\0') break; 481 449 i2=-1; … … 533 501 534 502 //Goto先ラベル 535 extern int obp; 536 compiler.codeGenerator.gotoLabels.push_back( GotoLabel( (long)i3, obp ) ); 503 compiler.codeGenerator.gotoLabels.push_back( GotoLabel( (long)i3, compiler.codeGenerator.GetNativeCodeSize() ) ); 537 504 538 505 //書き込みスケジュール … … 639 606 } 640 607 641 NextLine();642 608 compiler.codeGenerator.NextSourceLine(); 643 609 … … 675 641 if(bStopCompile) return 0; 676 642 677 ReallocNativeCodeBuffer();678 679 643 if(basbuf[cp]=='\0'){ 680 644 switch(Return_Command){
Note:
See TracChangeset
for help on using the changeset viewer.