Changeset 397 in dev


Ignore:
Timestamp:
Feb 25, 2008, 2:51:18 PM (16 years ago)
Author:
dai_9181
Message:

SmootheException::Throw → SetError
末尾以外のパラメータにデフォルト値を指定するとエラーになってしまうバグを修正。

Location:
trunk/abdev/BasicCompiler_Common/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/Procedure.cpp

    r383 r397  
    9999    //パラメータ
    100100    if(sourceOfParams[i]!='('){
    101         SmoothieException::Throw(1,NULL,nowLine);
     101        SetError(1,NULL,nowLine);
    102102        return 0;
    103103    }
     
    178178            i++;
    179179            i = GetOneParameter( sourceOfParams, i, initValue );
     180            if( sourceOfParams[i-1] == ',' )
     181            {
     182                i--;
     183            }
    180184
    181185            // TODO: エラー用 fix me!!!
     
    245249        else if(sourceOfParams[i]==')') continue;
    246250        else{
    247             SmoothieException::Throw(1,NULL,nowLine);
     251            SetError(1,NULL,nowLine);
    248252            break;
    249253        }
     
    366370            else if(sourceOfParams[i]==')') continue;
    367371            else{
    368                 SmoothieException::Throw(1,NULL,nowLine);
     372                SetError(1,NULL,nowLine);
    369373                break;
    370374            }
     
    695699    //パラメータ
    696700    if(sourceOfParams[i]!='('){
    697         SmoothieException::Throw(1,NULL,nowLine);
     701        SetError(1,NULL,nowLine);
    698702        return 0;
    699703    }
     
    814818        else if(sourceOfParams[i]==')') continue;
    815819        else{
    816             SmoothieException::Throw(1,NULL,nowLine);
     820            SetError(1,NULL,nowLine);
    817821            break;
    818822        }
     
    990994    //パラメータ
    991995    if(sourceOfParams[i]!='('){
    992         SmoothieException::Throw(1,NULL,nowLine);
     996        SetError(1,NULL,nowLine);
    993997        return 0;
    994998    }
     
    11071111        else if(sourceOfParams[i]==')') continue;
    11081112        else{
    1109             SmoothieException::Throw(1,NULL,nowLine);
     1113            SetError(1,NULL,nowLine);
    11101114            break;
    11111115        }
  • trunk/abdev/BasicCompiler_Common/src/TypeDef.cpp

    r395 r397  
    130130    //識別子が重複している場合はエラーにする
    131131    if(lstrcmp(temporary,pTemp)==0){
    132         SmoothieException::Throw(1,NULL,nowLine);
     132        SetError(1,NULL,nowLine);
    133133        return;
    134134    }
Note: See TracChangeset for help on using the changeset viewer.