Changeset 465 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/Compile.cpp
- Timestamp:
- Mar 24, 2008, 8:05:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/Compile.cpp
r461 r465 87 87 if( !pTypeParameterBaseClassNames ) 88 88 { 89 SetError();89 compiler.errorMessenger.OutputFatalError(); 90 90 } 91 91 pTypeParameterBaseClassNames->clear(); … … 113 113 { 114 114 extern int cp; 115 SetError(1,NULL,cp);115 compiler.errorMessenger.Output(1,NULL,cp); 116 116 } 117 117 typeParameters.push_back( temporary ); … … 129 129 { 130 130 extern int cp; 131 SetError(1,NULL,cp);131 compiler.errorMessenger.Output(1,NULL,cp); 132 132 } 133 133 } … … 150 150 { 151 151 extern int cp; 152 SetError(1,NULL,cp);152 compiler.errorMessenger.Output(1,NULL,cp); 153 153 } 154 154 } … … 181 181 char temporary[64]; 182 182 GetDefaultNameFromES( cStatement, temporary ); 183 SetError( 22, temporary, pos );183 compiler.errorMessenger.Output( 22, temporary, pos ); 184 184 return -1; 185 185 } … … 247 247 if( UserProc::IsLocalAreaCompiling() ){ 248 248 // ローカル領域をコンパイルしているとき 249 SetError(65,"TypeDef",cp );249 compiler.errorMessenger.Output(65,"TypeDef",cp ); 250 250 } 251 251 … … 256 256 if( UserProc::IsLocalAreaCompiling() ){ 257 257 // ローカル領域をコンパイルしているとき 258 SetError(65,"Delegate",cp );258 compiler.errorMessenger.Output(65,"Delegate",cp ); 259 259 } 260 260 … … 273 273 LexicalScope *pScope = compiler.codeGenerator.lexicalScopes.SearchScope( LexicalScope::SCOPE_TYPE_WHILE ); 274 274 if( !pScope ){ 275 SetError(12,"Exit While",cp);275 compiler.errorMessenger.Output(12,"Exit While",cp); 276 276 return; 277 277 } … … 283 283 LexicalScope *pScope = compiler.codeGenerator.lexicalScopes.SearchScope( LexicalScope::SCOPE_TYPE_FOR ); 284 284 if( !pScope ){ 285 SetError(12,"Exit For",cp);285 compiler.errorMessenger.Output(12,"Exit For",cp); 286 286 return; 287 287 } … … 293 293 LexicalScope *pScope = compiler.codeGenerator.lexicalScopes.SearchScope( LexicalScope::SCOPE_TYPE_DO ); 294 294 if( !pScope ){ 295 SetError(12,"Exit Do",cp);295 compiler.errorMessenger.Output(12,"Exit Do",cp); 296 296 return; 297 297 } … … 331 331 case ESC_ENDWITH: 332 332 if(WithInfo.num<=0){ 333 SetError(12,"End With",cp);333 compiler.errorMessenger.Output(12,"End With",cp); 334 334 return; 335 335 } … … 340 340 if( UserProc::IsLocalAreaCompiling() ){ 341 341 // ローカル領域をコンパイルしているとき 342 SetError(65,"Declare",cp );342 compiler.errorMessenger.Output(65,"Declare",cp ); 343 343 } 344 344 break; … … 349 349 case ESC_ENDNAMESPACE: 350 350 if( compiler.GetNamespaceSupporter().GetLivingNamespaceScopes().size() <= 0 ){ 351 SetError(12,"End Namespace",cp);351 compiler.errorMessenger.Output(12,"End Namespace",cp); 352 352 } 353 353 compiler.GetNamespaceSupporter().GetLivingNamespaceScopes().pop_back(); … … 380 380 char temporary[64]; 381 381 GetDefaultNameFromES(Command[1],temporary); 382 SetError(30,temporary,cp);382 compiler.errorMessenger.Output(30,temporary,cp); 383 383 break; 384 384 } … … 502 502 while(!(basbuf[cp]==1&&basbuf[cp+1]==ESC_ENDSUB)){ 503 503 if(basbuf[cp]=='\0'){ 504 SetError(22,"Sub",i2);504 compiler.errorMessenger.Output(22,"Sub",i2); 505 505 break; 506 506 } … … 516 516 while(!(basbuf[cp]==1&&basbuf[cp+1]==ESC_ENDFUNCTION)){ 517 517 if(basbuf[cp]=='\0'){ 518 SetError(22,"Function",i2);518 compiler.errorMessenger.Output(22,"Function",i2); 519 519 break; 520 520 } … … 530 530 while(!(basbuf[cp]==1&&basbuf[cp+1]==ESC_ENDMACRO)){ 531 531 if(basbuf[cp]=='\0'){ 532 SetError(22,"Macro",i2);532 compiler.errorMessenger.Output(22,"Macro",i2); 533 533 break; 534 534 } … … 544 544 while(!(basbuf[cp]==1&&basbuf[cp+1]==ESC_ENDTYPE)){ 545 545 if(basbuf[cp]=='\0'){ 546 SetError(22,"Type",i2);546 compiler.errorMessenger.Output(22,"Type",i2); 547 547 break; 548 548 } … … 558 558 while(!(basbuf[cp]==1&&basbuf[cp+1]==ESC_ENDCLASS)){ 559 559 if(basbuf[cp]=='\0'){ 560 SetError(22,"Class",i2);560 compiler.errorMessenger.Output(22,"Class",i2); 561 561 break; 562 562 } … … 572 572 while(!(basbuf[cp]==1&&basbuf[cp+1]==ESC_ENDINTERFACE)){ 573 573 if(basbuf[cp]=='\0'){ 574 SetError(22,"Interface",i2);574 compiler.errorMessenger.Output(22,"Interface",i2); 575 575 break; 576 576 } … … 686 686 } 687 687 if(Return_Sequence){ 688 SetError(12,temporary,cp);688 compiler.errorMessenger.Output(12,temporary,cp); 689 689 break; 690 690 } … … 703 703 basbuf[cp+1]==ESC_ENUM){ 704 704 GetDefaultNameFromES(basbuf[cp+1],temp3); 705 SetError(12,temp3,cp);705 compiler.errorMessenger.Output(12,temp3,cp); 706 706 } 707 707 } … … 718 718 basbuf[cp+1]==ESC_ENUM)){ 719 719 GetDefaultNameFromES(basbuf[cp+1],temp3); 720 SetError(12,temp3,cp);720 compiler.errorMessenger.Output(12,temp3,cp); 721 721 } 722 722 } … … 774 774 switch(Return_Command){ 775 775 case COM_WEND: 776 SetError(4,"\"While\" - \"Wend\" ",ScopeStart);776 compiler.errorMessenger.Output(4,"\"While\" - \"Wend\" ",ScopeStart); 777 777 break; 778 778 case COM_NEXT: 779 SetError(4,"\"For\" - \"Next\" ",ScopeStart);779 compiler.errorMessenger.Output(4,"\"For\" - \"Next\" ",ScopeStart); 780 780 break; 781 781 case COM_LOOP: 782 SetError(4,"\"Do\" - \"Loop\" ",ScopeStart);782 compiler.errorMessenger.Output(4,"\"Do\" - \"Loop\" ",ScopeStart); 783 783 break; 784 784 } 785 785 switch(Return_Sequence){ 786 786 case ESC_ENDSUB: 787 SetError(4,"\"Sub\" - \"End Sub\" ",ScopeStart);787 compiler.errorMessenger.Output(4,"\"Sub\" - \"End Sub\" ",ScopeStart); 788 788 break; 789 789 case ESC_ENDFUNCTION: 790 SetError(4,"\"Function\" - \"End Function\" ",ScopeStart);790 compiler.errorMessenger.Output(4,"\"Function\" - \"End Function\" ",ScopeStart); 791 791 break; 792 792 case ESC_ENDMACRO: 793 SetError(4,"\"Macro\" - \"End Macro\" ",ScopeStart);793 compiler.errorMessenger.Output(4,"\"Macro\" - \"End Macro\" ",ScopeStart); 794 794 break; 795 795 case ESC_ENDIF: 796 SetError(22,"If",ScopeStart);796 compiler.errorMessenger.Output(22,"If",ScopeStart); 797 797 break; 798 798 }
Note:
See TracChangeset
for help on using the changeset viewer.