Changeset 137 in dev for BasicCompiler64/Compile_Var.cpp
- Timestamp:
- Jun 8, 2007, 3:11:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Var.cpp
r135 r137 219 219 if(&objClass==pobj_CompilingClass){ 220 220 //同一クラスオブジェクトの場合はプライベートアクセスを容認する 221 if(pMember-> dwAccess==ACCESS_NON){221 if(pMember->IsNoneAccess()){ 222 222 if(isErrorEnabled) SetError(107,VarName,cp); 223 223 return false; … … 225 225 } 226 226 else{ 227 if((bPrivateAccess==0&&pMember-> dwAccess==ACCESS_PRIVATE)||228 pMember-> dwAccess==ACCESS_NON){227 if((bPrivateAccess==0&&pMember->IsPrivate())|| 228 pMember->IsNoneAccess()){ 229 229 if(isErrorEnabled) SetError(107,VarName,cp); 230 230 return false; 231 231 } 232 else if(bPrivateAccess==0&&pMember-> dwAccess==ACCESS_PROTECTED){232 else if(bPrivateAccess==0&&pMember->IsProtected()){ 233 233 if(isErrorEnabled) SetError(108,VarName,cp); 234 234 return false; … … 246 246 } 247 247 248 resultType = *pMember;248 resultType = pMember->GetType(); 249 249 250 250 //ポインタ変数の場合 … … 273 273 if(array[0]){ 274 274 //配列オフセット 275 if(!GetArrayOffset(pMember->SubScripts,array, *pMember)){275 if(!GetArrayOffset(pMember->SubScripts,array,pMember->GetType())){ 276 276 if(isErrorEnabled) SetError(14,member,cp); 277 277 } … … 352 352 isErrorEnabled, 353 353 isWriteAccess, 354 pMember->Get Class(),354 pMember->GetType().GetClass(), 355 355 NestMember, 356 356 pRelativeVar, … … 777 777 778 778 if(!SetInitGlobalData(offset+i3, 779 *objClass.ppobj_Member[i2],779 objClass.ppobj_Member[i2]->GetType(), 780 780 objClass.ppobj_Member[i2]->SubScripts, 781 781 temporary)) return false; … … 913 913 914 914 if(!InitLocalVar(offset+i3, 915 *objClass.ppobj_Member[i2],915 objClass.ppobj_Member[i2]->GetType(), 916 916 objClass.ppobj_Member[i2]->SubScripts, 917 917 temporary)) return false;
Note:
See TracChangeset
for help on using the changeset viewer.