Changeset 51 in dev for BasicCompiler32/CParameter.cpp


Ignore:
Timestamp:
Feb 10, 2007, 8:30:19 PM (17 years ago)
Author:
dai_9181
Message:

ppobj_Member及びppobj_StaticMemberを廃止し、vectorに統一した(methods及びstaticMethods)。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/CParameter.cpp

    r50 r51  
    109109
    110110            //call destructor
    111             int i5 = types[i2].u.pobj_Class->DestructorMemberSubIndex;
    112             if( i5 != -1 ){
    113                 op_call( types[i2].u.pobj_Class->ppobj_Method[i5]->psi );
     111            CMethod *method = types[i2].u.pobj_Class->GetDestructorMethod();
     112            if( method ){
     113                op_call( method->psi );
    114114            }
    115115
     
    148148    CalcType.type=NumOpe_GetType(Parameter,&BaseType,&CalcType.u.lpIndex);
    149149
    150     if(pobj_Class->CopyConstructorMemberSubIndex!=-1&&
    151         CalcType.type==DEF_OBJECT&&CalcType.u.pobj_Class==pobj_Class){
     150    if( pobj_Class->GetCopyConstructorMethod()
     151        && CalcType.type==DEF_OBJECT&&CalcType.u.pobj_Class==pobj_Class){
    152152        ////////////////////////////////////
    153153        // コピーコンストラクタを呼び出す
     
    179179
    180180        //call constructor
    181         op_call(pobj_Class->ppobj_Method[pobj_Class->CopyConstructorMemberSubIndex]->psi);
     181        op_call(pobj_Class->GetCopyConstructorMethod()->psi);
    182182
    183183
     
    191191
    192192
    193             if(pobj_Class->ConstructorMemberSubIndex!=-1){
     193            if( pobj_Class->GetConstructorMethod() ){
    194194                ////////////////////////////////
    195195                // コンストラクタを呼び出す
     
    200200
    201201                //call constructor
    202                 op_call(pobj_Class->ppobj_Method[pobj_Class->ConstructorMemberSubIndex]->psi);
     202                op_call(pobj_Class->GetConstructorMethod()->psi);
    203203            }
    204204
Note: See TracChangeset for help on using the changeset viewer.