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

    r290 r465  
    4141            if(Parameter[i2+1]==';') lstrcpy(buffer+i2,"? \"");
    4242            else if(Parameter[i2+1]==',') lstrcpy(buffer+i2,"\"");
    43             else SetError(10,"Input",cp);
     43            else compiler.errorMessenger.Output(10,"Input",cp);
    4444            i2+=2;
    4545        }
     
    5757            if(Parameter[i2+1]==';') lstrcpy(buffer+i2,"? \"");
    5858            else if(Parameter[i2+1]==',') lstrcpy(buffer+i2,"\"");
    59             else SetError(10,"Input",cp);
     59            else compiler.errorMessenger.Output(10,"Input",cp);
    6060            i2+=2;
    6161        }
     
    8989        }
    9090        if(temporary[0]=='\0'){
    91             SetError(10,"Input",cp);
     91            compiler.errorMessenger.Output(10,"Input",cp);
    9292            return;
    9393        }
     
    122122    else pUserProc=GetSubHash("INPUT_FromPrompt");
    123123    if(!pUserProc){
    124         SetError(3,"Input",cp);
     124        compiler.errorMessenger.Output(3,"Input",cp);
    125125        return;
    126126    }
     
    189189        }
    190190        if(temporary[0]=='\0'){
    191             SetError(10,"Print",cp);
     191            compiler.errorMessenger.Output(10,"Print",cp);
    192192            return;
    193193        }
     
    224224    else pUserProc=GetSubHash("PRINTUSING_ToPrompt");
    225225    if(!pUserProc){
    226         SetError(3,"Print",cp);
     226        compiler.errorMessenger.Output(3,"Print",cp);
    227227        return;
    228228    }
     
    328328    else pUserProc=GetSubHash("PRINT_ToPrompt");
    329329    if(!pUserProc){
    330         SetError(3,"Print",cp);
     330        compiler.errorMessenger.Output(3,"Print",cp);
    331331        return;
    332332    }
Note: See TracChangeset for help on using the changeset viewer.