Changeset 56 in dev for BasicCompiler_Common/Class.cpp
- Timestamp:
- Feb 15, 2007, 3:39:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Class.cpp
r53 r56 13 13 14 14 CMember *pCompilingMethod; 15 16 int AddDataTable(char *buffer,int length);17 15 18 16 … … 412 410 413 411 414 LONG_PTR CClass::AddVtblDataTable(SUBINFO **ppsi,int length){415 return AddDataTable((char *)ppsi,length);416 }417 412 int CClass::GetFuncNumInVtbl( const SUBINFO *psi ) const 418 413 { … … 454 449 } 455 450 456 vtbl_offset= AddDataTable((char*)ppsi,vtbl_num*sizeof(LONG_PTR));451 vtbl_offset=dataTable.AddBinary((void *)ppsi,vtbl_num*sizeof(LONG_PTR)); 457 452 458 453 for( int i=0; i < vtbl_num; i++ ){ … … 467 462 if(vtbl_offset==-1) return; 468 463 469 extern char *DataTable;470 464 LONG_PTR *pVtbl; 471 pVtbl=(LONG_PTR *)( DataTable+vtbl_offset);465 pVtbl=(LONG_PTR *)((char *)dataTable.GetPtr()+vtbl_offset); 472 466 473 467 int i;
Note:
See TracChangeset
for help on using the changeset viewer.