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/Delegate.cpp

    r449 r465  
    2020        if( !compiler.StringToType( returnTypeName, returnType ) )
    2121        {
    22             SetError(3,returnTypeName,sourceIndex);
     22            compiler.errorMessenger.Output(3,returnTypeName,sourceIndex);
    2323        }
    2424    }
     
    7272        else if( source[i] == 1 && source[i+1] == ESC_ENDNAMESPACE ){
    7373            if( namespaceScopes.size() <= 0 ){
    74                 SetError(12, "End Namespace", i );
     74                compiler.errorMessenger.Output(12, "End Namespace", i );
    7575            }
    7676            else{
     
    9191            if( !compiler.GetNamespaceSupporter().ImportsNamespace( temporary ) )
    9292            {
    93                 SetError(64,temporary,i );
     93                compiler.errorMessenger.Output(64,temporary,i );
    9494            }
    9595
     
    108108            if( !( source[i] == 1 && ( source[i+1] == ESC_SUB || source[i+1] == ESC_FUNCTION ) ) )
    109109            {
    110                 SetError(1,NULL,i);
     110                compiler.errorMessenger.Output(1,NULL,i);
    111111                continue;
    112112            }
     
    125125            if( source[i] != '(' )
    126126            {
    127                 SetError(1,NULL,nowLine);
     127                compiler.errorMessenger.Output(1,NULL,nowLine);
    128128                continue;
    129129            }
     
    142142                if( procKind != Procedure::Function )
    143143                {
    144                     SetError(38,name,nowLine);
     144                    compiler.errorMessenger.Output(38,name,nowLine);
    145145                }
    146146            }
     
    149149                if( procKind == Procedure::Function )
    150150                {
    151                     SetError(-104,name,nowLine);
     151                    compiler.errorMessenger.Output(-104,name,nowLine);
    152152                    lstrcpy( returnTypeName, "Double" );
    153153                }
Note: See TracChangeset for help on using the changeset viewer.