Ignore:
Timestamp:
Mar 24, 2008, 8:05:20 PM (16 years ago)
Author:
dai_9181
Message:

Messenger/ErrorMessengerクラスを導入。SetError関数によるエラー生成を廃止した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp

    r461 r465  
    1010{
    1111    if( !compiler.StringToType( baseName, baseType ) ){
    12         SetError(3, baseName, nowLine );
     12        compiler.errorMessenger.Output(3, baseName, nowLine );
    1313        return;
    1414    }
     
    8787
    8888    if(expression[i]!='='){
    89         SetError(10,"TypeDef",nowLine);
     89        compiler.errorMessenger.Output(10,"TypeDef",nowLine);
    9090        return;
    9191    }
     
    9898        if(temporary[i]=='\0') break;
    9999        if( !( IsVariableChar( temporary[i], true) ) ){
    100             SetError(10,"TypeDef",nowLine);
     100            compiler.errorMessenger.Output(10,"TypeDef",nowLine);
    101101            return;
    102102        }
     
    107107        //関数ポインタ
    108108        if(pTemp[3]!='('){
    109             SetError(10,"TypeDef",nowLine);
     109            compiler.errorMessenger.Output(10,"TypeDef",nowLine);
    110110            return;
    111111        }
     
    118118            if( !( IsVariableChar( pTemp[i], true) ) )
    119119            {
    120                 SetError(10,"TypeDef",nowLine);
     120                compiler.errorMessenger.Output(10,"TypeDef",nowLine);
    121121                return;
    122122            }
     
    126126    //識別子が重複している場合はエラーにする
    127127    if(lstrcmp(temporary,pTemp)==0){
    128         SetError(1,NULL,nowLine);
     128        compiler.errorMessenger.Output(1,NULL,nowLine);
    129129        return;
    130130    }
     
    170170        else if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENDNAMESPACE ){
    171171            if( namespaceScopes.size() <= 0 ){
    172                 SetError(12, "End Namespace", i );
     172                compiler.errorMessenger.Output(12, "End Namespace", i );
    173173            }
    174174            else{
     
    189189            if( !compiler.GetNamespaceSupporter().ImportsNamespace( temporary ) )
    190190            {
    191                 SetError(64,temporary,i );
     191                compiler.errorMessenger.Output(64,temporary,i );
    192192            }
    193193
Note: See TracChangeset for help on using the changeset viewer.