Changeset 135 in dev for BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Jun 6, 2007, 12:58:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/DebugMiddleFile.cpp
r131 r135 327 327 i2+=sizeof(long); 328 328 for(i4=0;i4<pobj_c->iMemberNum;i4++){ 329 lstrcpy(buffer+i2,pobj_c->ppobj_Member[i4]-> name);329 lstrcpy(buffer+i2,pobj_c->ppobj_Member[i4]->GetName().c_str()); 330 330 i2+=lstrlen(buffer+i2)+1; 331 331 … … 353 353 *(long *)(buffer+i2)=(long)pobj_c->methods.size(); 354 354 i2+=sizeof(long); 355 foreach( CMethod *method, pobj_c->methods ){356 *(long *)(buffer+i2)= method->dwAccess;357 i2+=sizeof(long); 358 if( method->pobj_InheritsClass){359 lstrcpy(buffer+i2, method->pobj_InheritsClass->GetName().c_str());355 foreach( const CMethod *pMethod, pobj_c->methods ){ 356 *(long *)(buffer+i2)=pMethod->dwAccess; 357 i2+=sizeof(long); 358 if( pMethod->GetInheritsClassPtr() ){ 359 lstrcpy(buffer+i2,pMethod->GetInheritsClassPtr()->GetName().c_str()); 360 360 i2+=lstrlen(buffer+i2)+1; 361 361 } … … 364 364 i2+=lstrlen(buffer+i2)+1; 365 365 } 366 lstrcpy(buffer+i2, method->pUserProc->GetName().c_str());366 lstrcpy(buffer+i2,pMethod->pUserProc->GetName().c_str()); 367 367 i2+=lstrlen(buffer+i2)+1; 368 368 } … … 372 372 i2+=sizeof(long); 373 373 foreach( CMember *member, pobj_c->staticMembers ){ 374 lstrcpy(buffer+i2,member-> name);374 lstrcpy(buffer+i2,member->GetName().c_str()); 375 375 i2+=lstrlen(buffer+i2)+1; 376 376 … … 709 709 pobj_c->ppobj_Member[i4]=new CMember(); 710 710 711 pobj_c->ppobj_Member[i4]->name=(char *)HeapAlloc(hHeap,0,lstrlen(buffer+i2)+1); 712 lstrcpy(pobj_c->ppobj_Member[i4]->name,buffer+i2); 711 pobj_c->ppobj_Member[i4]->SetName( (char *)(buffer+i2) ); 713 712 i2+=lstrlen(buffer+i2)+1; 714 713 … … 759 758 } 760 759 761 CMethod *method = new CMethod( pUserProc, dwAccess, 0,0,false, false); 762 method->pobj_InheritsClass = pobj_InheritsClass; 763 764 pobj_c->methods.push_back( method ); 760 CMethod *pMethod = new DynamicMethod( pUserProc, dwAccess, 0,0,false, pobj_InheritsClass); 761 762 pobj_c->methods.push_back( pMethod ); 765 763 } 766 764 … … 771 769 CMember *member=new CMember(); 772 770 773 member->name=(char *)HeapAlloc(hHeap,0,lstrlen(buffer+i2)+1); 774 lstrcpy(member->name,buffer+i2); 771 member->SetName( (char *)(buffer+i2) ); 775 772 i2+=lstrlen(buffer+i2)+1; 776 773
Note:
See TracChangeset
for help on using the changeset viewer.