Changeset 97 in dev for BasicCompiler32/Compile_Var.cpp


Ignore:
Timestamp:
Apr 16, 2007, 3:52:40 AM (17 years ago)
Author:
dai_9181
Message:

関数の戻り値オブジェクトのメンバ・メソッドを一時オブジェクトを介さずに参照できるようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/Compile_Var.cpp

    r96 r97  
    336336
    337337    return true;
    338 }
    339 void GetWithName(char *buffer){
    340     extern WITHINFO WithInfo;
    341     int i;
    342 
    343     buffer[0]=0;
    344     for(i=0;i<WithInfo.num;i++)
    345         lstrcat(buffer,WithInfo.ppName[i]);
    346338}
    347339
     
    836828    }
    837829    else if( type.IsLong() || type.IsDWord() || type.IsPointer() ){
    838         if(type.GetBasicType()==typeOfPtrChar&&calcType.GetIndex()==LITERAL_STRING){
     830        if(type.GetBasicType()==typeOfPtrChar){
    839831            //文字列定数のとき
    840832
     
    10221014    }
    10231015    else if( type.IsDWord() || type.IsLong() || type.IsPointer() ){
    1024         if(type.GetBasicType()==typeOfPtrChar&&calcType.GetIndex()==LITERAL_STRING){
     1016        if(type.GetBasicType()==typeOfPtrChar){
    10251017            //文字列定数のとき
    10261018
     
    13071299    }
    13081300}
     1301void SetVarPtrToReg(int reg,RELATIVE_VAR *pRelativeVar){
     1302    if( reg != REG_EAX ){
     1303        SetError();
     1304        //TODO: 未完成
     1305    }
     1306    SetVarPtrToEax( pRelativeVar );
     1307}
    13091308
    13101309bool Compile_AddGlobalRootsForGc(){
Note: See TracChangeset for help on using the changeset viewer.