Ignore:
Timestamp:
Mar 20, 2007, 4:36:16 AM (17 years ago)
Author:
dai_9181
Message:

TYPEINFO→Typeへのリファクタリングを実施。64bitはほぼ完了。32bitが全般的に未完成。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/CommandFormat.cpp

    r4 r75  
    11#include "common.h"
    22
    3 void ComOpen(char *Parameter,char *buffer,int NowLine){
     3void ComOpen(char *Parameter,char *buffer,int nowLine){
    44    int i,i2,IsStr;
    55    char temporary[255];
     
    2626        for(i2=0;;i++,i2++){
    2727            if(Parameter[i]=='\0'){
    28                 SetError(1,NULL,NowLine);
     28                SetError(1,NULL,nowLine);
    2929                return;
    3030            }
     
    3939        else if(lstrcmpi(temporary,"append")==0) lstrcat(buffer,",3");
    4040        else{
    41             SetError(1,NULL,NowLine);
     41            SetError(1,NULL,nowLine);
    4242            return;
    4343        }
     
    6363}
    6464
    65 void ComLine(char *Parameter,char *buffer,int NowLine){
     65void ComLine(char *Parameter,char *buffer,int nowLine){
    6666    int i,i2,PareNum;
    6767    char temporary[VN_SIZE],temp2[VN_SIZE];
     
    7575    else{
    7676        if(Parameter[0]!='('){
    77             SetError(10,"Line",NowLine);
     77            SetError(10,"Line",nowLine);
    7878            return;
    7979        }
     
    9393
    9494        if(Parameter[i+1]!='-'){
    95             SetError(10,"Line",NowLine);
     95            SetError(10,"Line",nowLine);
    9696            return;
    9797        }
     
    107107
    108108    if(Parameter[i]!='('){
    109         SetError(10,"Line",NowLine);
     109        SetError(10,"Line",nowLine);
    110110        return;
    111111    }
     
    129129    }
    130130    else if(Parameter[i+1]!=','){
    131         SetError(10,"Line",NowLine);
     131        SetError(10,"Line",nowLine);
    132132        return;
    133133    }
     
    147147    else if(lstrcmpi(temporary,"bf")==0) lstrcat(buffer,",2");
    148148    else{
    149         SetError(10,"Line",NowLine);
     149        SetError(10,"Line",nowLine);
    150150        return;
    151151    }
     
    158158    i=GetOneParameter(Parameter,i,temporary);   //第7パラメータ取得
    159159    if(Parameter[i-1]==','){
    160         SetError(10,"Line",NowLine);
     160        SetError(10,"Line",nowLine);
    161161        return;
    162162    }
     
    165165    lstrcat(buffer,temporary);
    166166}
    167 void ComCircle(char *Parameter,char *buffer,int NowLine){
     167void ComCircle(char *Parameter,char *buffer,int nowLine){
    168168    int i,i2,PareNum;
    169169    char temporary[VN_SIZE],temp2[VN_SIZE];
     
    172172
    173173    if(Parameter[0]!='('){
    174         SetError(10,"Circle",NowLine);
     174        SetError(10,"Circle",nowLine);
    175175        return;
    176176    }
     
    189189    i++;
    190190    if(Parameter[i]!=','){
    191         SetError(10,"Circle",NowLine);
     191        SetError(10,"Circle",nowLine);
    192192        return;
    193193    }
     
    241241    }
    242242    else{
    243         SetError(10,"Circle",NowLine);
     243        SetError(10,"Circle",nowLine);
    244244        return;
    245245    }
     
    251251        lstrcat(buffer,temporary);
    252252        if(Parameter[i-1]==','){
    253             SetError(10,"Circle",NowLine);
     253            SetError(10,"Circle",nowLine);
    254254            return;
    255255        }
     
    260260    }
    261261}
    262 void ComPSet(char *Parameter,char *buffer,int NowLine){
     262void ComPSet(char *Parameter,char *buffer,int nowLine){
    263263    int i,i2,PareNum;
    264264
     
    266266
    267267    if(Parameter[0]!='('){
    268         SetError(10,"PSet",NowLine);
     268        SetError(10,"PSet",nowLine);
    269269        return;
    270270    }
     
    284284    else if(Parameter[i+1]=='\0') lstrcat(buffer,",7");
    285285    else{
    286         SetError(10,"PSet",NowLine);
    287         return;
    288     }
    289 }
    290 void ComPaint(char *Parameter,char *buffer,int NowLine){
     286        SetError(10,"PSet",nowLine);
     287        return;
     288    }
     289}
     290void ComPaint(char *Parameter,char *buffer,int nowLine){
    291291    int i,i2,PareNum;
    292292
     
    294294
    295295    if(Parameter[0]!='('){
    296         SetError(10,"Paint",NowLine);
     296        SetError(10,"Paint",nowLine);
    297297        return;
    298298    }
     
    309309    }
    310310    if(Parameter[i+1]!=','){
    311         SetError(10,"Paint",NowLine);
     311        SetError(10,"Paint",nowLine);
    312312        return;
    313313    }
Note: See TracChangeset for help on using the changeset viewer.