Changeset 67 in dev for BasicCompiler_Common/Class.cpp
- Timestamp:
- Mar 11, 2007, 3:25:42 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Class.cpp
r64 r67 118 118 pobj_c=pobj_DBClass->Iterator_GetNext(); 119 119 120 int i=0; 120 121 foreach( CMember *member, pobj_c->staticMembers ){ 121 122 char temporary[VN_SIZE]; … … 137 138 OpBuffer=(char *)HeapReAlloc(hHeap,0,OpBuffer,obp_AllocSize); //matea 138 139 } 140 i++; 139 141 } 140 142 } … … 671 673 } 672 674 673 CDBClass::CDBClass(){ 674 memset(this,0,sizeof(CDBClass)); 675 CDBClass::CDBClass(): 676 pStringClass( NULL ), 677 pObjectClass( NULL ), 678 pCompilingClass( NULL ), 679 pCompilingMethod( NULL ), 680 ppobj_IteClass( NULL ), 681 iIteMaxNum( 0 ), 682 iIteNextNum( 0 ) 683 { 684 memset( pobj_ClassHash, 0, MAX_CLASS_HASH * sizeof(CClass *) ); 675 685 } 676 686 CDBClass::~CDBClass(){ … … 731 741 //Stringクラス 732 742 pobj_StringClass=pobj_c; 743 } 744 if( lstrcmp( name, "Object" ) == 0 ){ 745 pObjectClass = pobj_c; 733 746 } 734 747 … … 1421 1434 } 1422 1435 1423 void CDBClass::Get ObjectClassInfo(void){1436 void CDBClass::GetAllClassInfo(void){ 1424 1437 //ループ継承チェック用のクラス 1425 1438 pobj_LoopRefCheck=new CLoopRefCheck(); … … 1430 1443 delete pobj_LoopRefCheck; 1431 1444 pobj_LoopRefCheck=0; 1445 } 1446 1447 CClass *CDBClass::GetStringClass() const 1448 { 1449 if( !pStringClass ){ 1450 SetError(); 1451 return NULL; 1452 } 1453 return pStringClass; 1454 } 1455 CClass *CDBClass::GetObjectClass() const 1456 { 1457 if( !pObjectClass ){ 1458 SetError(); 1459 return NULL; 1460 } 1461 return pObjectClass; 1432 1462 } 1433 1463
Note:
See TracChangeset
for help on using the changeset viewer.