Changeset 253 in dev for trunk/abdev/BasicCompiler32/Compile_Statement.cpp
- Timestamp:
- Jul 30, 2007, 4:12:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Statement.cpp
r250 r253 240 240 241 241 //レキシカルスコープをレベルアップ 242 extern int obp; 242 243 compiler.codeGenerator.lexicalScopes.Start( obp, LexicalScope::SCOPE_TYPE_IF ); 243 244 … … 308 309 { 309 310 //jmp ...(schedule) 310 compiler.codeGenerator.op_jmp_goto_schedule( GotoLabelSchedule( (const std::string)(Parameter + 1), obp, cp ) ); 311 extern int obp; 312 compiler.codeGenerator.op_jmp_goto_schedule( (const std::string)(Parameter + 1), 0, cp ); 311 313 } 312 314 else 313 315 { 314 316 //jmp ... 317 extern int obp; 315 318 compiler.codeGenerator.op_jmp( i-obp, sizeof(long), false, true ); 316 319 } … … 323 326 { 324 327 //jmp ...(schedule) 325 compiler.codeGenerator.op_jmp_goto_schedule( GotoLabelSchedule( LineNum, obp, cp ) ); 328 extern int obp; 329 compiler.codeGenerator.op_jmp_goto_schedule( "", LineNum, cp ); 326 330 } 327 331 else 328 332 { 329 333 //jmp ... 334 extern int obp; 330 335 compiler.codeGenerator.op_jmp( i-obp, sizeof(long), false, true ); 331 336 } … … 436 441 437 442 //レキシカルスコープをレベルアップ 443 extern int obp; 438 444 compiler.codeGenerator.lexicalScopes.Start( obp, LexicalScope::SCOPE_TYPE_WHILE ); 439 445 … … 552 558 553 559 //レキシカルスコープをレベルアップ 560 extern int obp; 554 561 compiler.codeGenerator.lexicalScopes.Start( obp, LexicalScope::SCOPE_TYPE_FOR ); 555 562 … … 588 595 589 596 //レキシカルスコープをレベルアップ 597 extern int obp; 590 598 compiler.codeGenerator.lexicalScopes.Start( obp, LexicalScope::SCOPE_TYPE_DO ); 591 599 … … 1030 1038 1031 1039 //レキシカルスコープをレベルアップ 1040 extern int obp; 1032 1041 compiler.codeGenerator.lexicalScopes.Start( obp, LexicalScope::SCOPE_TYPE_SELECT ); 1033 1042 … … 1079 1088 void OpcodeGosub(char *Parameter){ 1080 1089 extern HANDLE hHeap; 1090 extern int obp; 1081 1091 int i,LineNum; 1082 1092 … … 1087 1097 { 1088 1098 //jmp ...(schedule) 1089 compiler.codeGenerator.op_jmp_goto_schedule( GotoLabelSchedule( (const std::string)(Parameter + 1), obp, cp ));1099 compiler.codeGenerator.op_jmp_goto_schedule( (const std::string)(Parameter + 1), 0, cp ); 1090 1100 } 1091 1101 else … … 1102 1112 { 1103 1113 //jmp ...(schedule) 1104 compiler.codeGenerator.op_jmp_goto_schedule( GotoLabelSchedule( LineNum, obp, cp ));1114 compiler.codeGenerator.op_jmp_goto_schedule( "", LineNum, cp ); 1105 1115 } 1106 1116 else
Note:
See TracChangeset
for help on using the changeset viewer.