Ignore:
Timestamp:
Mar 27, 2008, 3:04:28 AM (16 years ago)
Author:
dai_9181
Message:

64bit版を最新の状態にした

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler64/NumOpe.cpp

    r463 r468  
    177177                // オブジェクトメンバのポインタをraxにコピー
    178178                if( !VarToReg( tempRelativeVar, baseType, resultType ) ){
    179                     SetError(11,termFull,cp);
     179                    compiler.errorMessenger.Output(11,termFull,cp);
    180180                }
    181181            }
     
    220220            if( !leftType.IsStruct() )
    221221            {
    222                 SetError();
     222                compiler.errorMessenger.OutputFatalError();
    223223            }
    224224
     
    344344    {
    345345        // 関数ポインタ
    346         SetError();
     346        compiler.errorMessenger.OutputFatalError();
    347347
    348348        ///////////////////////////////////////////////////////////////////
     
    354354    }
    355355
    356     SetError();
     356    compiler.errorMessenger.OutputFatalError();
    357357
    358358    return false;
     
    412412            if( isProcedureCallOnly )
    413413            {
    414                 SetError(1,NULL,cp);
     414                compiler.errorMessenger.Output(1,NULL,cp);
    415415            }
    416416            return false;
     
    444444        if( compiler.pCompilingClass == NULL )
    445445        {
    446             SetError(142,NULL,cp);
     446            compiler.errorMessenger.Output(142,NULL,cp);
    447447            return false;
    448448        }
     
    475475            //閉じカッコ")"に続く文字がNULLでないとき
    476476            if(termFull[i2+1+i4+1]!='\0'){
    477                 SetError(42,NULL,cp);
     477                compiler.errorMessenger.Output(42,NULL,cp);
    478478            }
    479479
     
    537537
    538538                //閉じカッコ")"に続く文字がNULLでないときはエラーにする
    539                 if(termFull[i2+1+i4+1]!='\0') SetError(42,NULL,cp);
     539                if(termFull[i2+1+i4+1]!='\0') compiler.errorMessenger.Output(42,NULL,cp);
    540540
    541541                //マクロ関数の場合
     
    658658    if( isProcedureCallOnly )
    659659    {
    660         SetError(3, termLeft, cp );
     660        compiler.errorMessenger.Output(3, termLeft, cp );
    661661    }
    662662
     
    687687        // 変数の場合はeaxに変数ポインタを格納する
    688688        if( !VarToReg( relativeVar, baseType, resultType ) ){
    689             SetError(11,term,cp);
     689            compiler.errorMessenger.Output(11,term,cp);
    690690        }
    691691    }
     
    715715    if( pobj_reg )
    716716    {
    717         SetError();
     717        compiler.errorMessenger.OutputFatalError();
    718718    }
    719719
     
    726726    if( !isVariable )
    727727    {
    728         SetError();
     728        compiler.errorMessenger.OutputFatalError();
    729729    }
    730730
     
    753753
    754754    if(expression[0]=='\0'){
    755         SetError(1,NULL,cp);
     755        compiler.errorMessenger.Output(1,NULL,cp);
    756756        return false;
    757757    }
     
    836836
    837837            if( pobj_BlockReg->check(REG_RAX) ){
    838                 SetError();
     838                compiler.errorMessenger.OutputFatalError();
    839839            }
    840840
     
    937937                        else GetCalcName(idCalc,temp2);
    938938                        sprintf(temporary,"Operator %s",temp2);
    939                         SetError(27,temporary,cp);
     939                        compiler.errorMessenger.Output(27,temporary,cp);
    940940                        goto error;
    941941                    }
     
    971971                    }
    972972                    else{
    973                         SetError(3, term, cp );
     973                        compiler.errorMessenger.Output(3, term, cp );
    974974                        goto error;
    975975                    }
     
    997997                        // 拡張版リテラル文字列(エスケープシーケンス可能)
    998998                        if(!RemoveStringQuotes(term+2)){
    999                             SetError(43,NULL,cp);
     999                            compiler.errorMessenger.Output(43,NULL,cp);
    10001000                            goto error;
    10011001                        }
     
    10071007                        // 通常文字列
    10081008                        if(!RemoveStringQuotes(term)){
    1009                             SetError(43,NULL,cp);
     1009                            compiler.errorMessenger.Output(43,NULL,cp);
    10101010                            goto error;
    10111011                        }
     
    10661066                                }
    10671067                            }
    1068                             SetError(38,term,cp);
     1068                            compiler.errorMessenger.Output(38,term,cp);
    10691069
    10701070                            goto error;
     
    10801080                        if( resultType.GetBasicType() & FLAG_CAST ){
    10811081                            // 型名のみ
    1082                             SetError();
     1082                            compiler.errorMessenger.OutputFatalError();
    10831083                        }
    10841084                        else{
     
    11901190                        }
    11911191                        else{
    1192                             SetError(1,NULL,0);
     1192                            compiler.errorMessenger.Output(1,NULL,0);
    11931193                            goto error;
    11941194                        }
     
    11981198                    //該当する識別子が見当たらないときはエラー扱いにする
    11991199                    bError=1;
    1200                     SetError(3,term,cp);
     1200                    compiler.errorMessenger.Output(3,term,cp);
    12011201                    type_stack[sp]=DEF_DOUBLE;
    12021202                }
     
    12351235
    12361236                        if(XmmReg==REG_XMM4){
    1237                             SetError();     // TODO: 未実装
     1237                            compiler.errorMessenger.OutputFatalError();     // TODO: 未実装
    12381238                            //push term
    12391239                            //compiler.codeGenerator.op_push_value(i32data);
     
    13331333                if( PTR_LEVEL( type_stack[sp-1] ) <= 0 ){
    13341334                    //ポインタ型ではないとき
    1335                     SetError( 3, NULL, cp );
     1335                    compiler.errorMessenger.Output( 3, NULL, cp );
    13361336                    goto error;
    13371337                }
     
    13421342
    13431343            default:
    1344                 SetError(300,NULL,cp);
     1344                compiler.errorMessenger.Output(300,NULL,cp);
    13451345                goto error;
    13461346        }
     
    13501350
    13511351    if(sp!=1){
    1352         SetError(1,NULL,cp);
     1352        compiler.errorMessenger.Output(1,NULL,cp);
    13531353        goto error;
    13541354    }
    13551355
    13561356    if(bLiteralCalculation){
    1357         SetError();
     1357        compiler.errorMessenger.OutputFatalError();
    13581358    }
    13591359    else{
Note: See TracChangeset for help on using the changeset viewer.