Changeset 63 in dev for BasicCompiler64/Compile_Var.cpp
- Timestamp:
- Feb 23, 2007, 2:12:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Var.cpp
r62 r63 43 43 *pType=MAKE_PTR_TYPE(NATURAL_TYPE(*pType),PTR_LEVEL(*pType)-1); 44 44 if((*pType)==DEF_OBJECT){ 45 CClass *pClass = (CClass *)lpIndex; 45 46 //imul reg,objsize 46 op_imul_value( sizeof(_int64),reg,GetSizeOfClassMember((CClass *)lpIndex,NULL,NULL));47 op_imul_value( sizeof(_int64), reg, pClass->GetSize() ); 47 48 } 48 49 else{ … … 180 181 } 181 182 BOOL GetMemberOffset(bool isErrorEnabled, bool isWriteAccess, CClass *pobj_c, char *member, int *pType, RELATIVE_VAR *pRelativeVar, LONG_PTR *plpNestIndex, BOOL bPrivateAccess){ 182 int i ,offset;183 int i; 183 184 184 185 … … 200 201 //////////////////////////// 201 202 202 offset=GetSizeOfClassMember(pobj_c,VarName,&i);203 int offset = pobj_c->GetMemberOffset( VarName, &i ); 203 204 if(i==pobj_c->iMemberNum){ 204 205 if(isErrorEnabled) SetError(103,VarName,cp); … … 821 822 i=GetOneParameter(InitBuf,i,temporary); 822 823 823 i3= GetSizeOfClassMember(pobj_c,pobj_c->ppobj_Member[i2]->name,NULL);824 i3=pobj_c->GetMemberOffset( pobj_c->ppobj_Member[i2]->name, NULL ); 824 825 825 826 if(!SetInitGlobalData(offset+i3, … … 959 960 i=GetOneParameter(InitBuf,i,temporary); 960 961 961 i3= GetSizeOfClassMember(pobj_c,pobj_c->ppobj_Member[i2]->name,NULL);962 i3=pobj_c->GetMemberOffset( pobj_c->ppobj_Member[i2]->name, NULL ); 962 963 963 964 if(!InitLocalVar(offset+i3,
Note:
See TracChangeset
for help on using the changeset viewer.