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

    r64 r75  
    146146        //数値定数
    147147        _int64 i64data;
    148         pci->type=StaticCalculation(true, temporary,0,&i64data,&pci->lpIndex);
     148        Type resultType;
     149        StaticCalculation(true, temporary,0,&i64data,resultType);
     150        pci->type=resultType.GetBasicType();
    149151        if(IsRealNumberType(pci->type)){
    150152            //実数型
     
    231233
    232234            _int64 i64data;
    233             LONG_PTR lpIndex;
    234             StaticCalculation(true, temp2,DEF_LONG,&i64data,&lpIndex);
     235            StaticCalculation(true, temp2,DEF_LONG,&i64data,Type());
    235236            NextValue=(int)i64data;
    236237        }
     
    303304
    304305char ConstructorDestructorSchedule[MAX_PATH];
    305 void MakeConstructorAndDestructor(char *buffer,int NowLine,char *ClassName){
     306void MakeConstructorAndDestructor(char *buffer,int nowLine,char *ClassName){
    306307    int i,i2;
    307308    char temporary[MAX_PATH],*pTemp;
     
    312313    bDestructor=0;
    313314
    314     for(i=NowLine;;i++){
     315    for(i=nowLine;;i++){
    315316        if(buffer[i]=='\0') break;
    316317        if(buffer[i]==1&&buffer[i+1]==ESC_ENDCLASS){
     
    360361    }
    361362}
    362 void ChangeCommand(char *buffer,int NowLine,char *Command){
     363void ChangeCommand(char *buffer,int nowLine,char *Command){
    363364    int i,i2,IsStr;
    364365    unsigned _int16 ComNum;
     
    391392
    392393                //コンストラクタ、デストラクタを暗黙的に生成
    393                 MakeConstructorAndDestructor(buffer,NowLine,Command+2);
     394                MakeConstructorAndDestructor(buffer,nowLine,Command+2);
    394395                break;
    395396            case ESC_INTERFACE:
     
    457458    if( nCountOfNonGlobalScope == 0 ){
    458459        //グローバル
    459         if(lstrcmpi(com,"Open")==0) ComOpen(Command+i,pam,NowLine);
     460        if(lstrcmpi(com,"Open")==0) ComOpen(Command+i,pam,nowLine);
    460461        else if(lstrcmpi(com,"Close")==0) ComClose(Command+i,pam);
    461462        else if(lstrcmpi(com,"Field")==0||
    462463            lstrcmpi(com,"Get")==0||
    463464            lstrcmpi(com,"Put")==0) ComField(Command+i,pam);
    464         else if(lstrcmpi(com,"Line")==0) ComLine(Command+i,pam,NowLine);
    465         else if(lstrcmpi(com,"Circle")==0) ComCircle(Command+i,pam,NowLine);
    466         else if(lstrcmpi(com,"PSet")==0) ComPSet(Command+i,pam,NowLine);
    467         else if(lstrcmpi(com,"Paint")==0) ComPaint(Command+i,pam,NowLine);
     465        else if(lstrcmpi(com,"Line")==0) ComLine(Command+i,pam,nowLine);
     466        else if(lstrcmpi(com,"Circle")==0) ComCircle(Command+i,pam,nowLine);
     467        else if(lstrcmpi(com,"PSet")==0) ComPSet(Command+i,pam,nowLine);
     468        else if(lstrcmpi(com,"Paint")==0) ComPaint(Command+i,pam,nowLine);
    468469
    469470        else if(
Note: See TracChangeset for help on using the changeset viewer.