Changeset 159 in dev for trunk/abdev/BasicCompiler_Common/Class.cpp
- Timestamp:
- Jun 17, 2007, 4:44:57 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Class.cpp
r143 r159 7 7 #endif 8 8 9 C DBClass *pobj_DBClass;9 Classes *pobj_DBClass; 10 10 11 11 const CClass *pobj_CompilingClass; … … 588 588 589 589 590 int C DBClass::hash(const char *name) const{590 int Classes::hash(const char *name) const{ 591 591 int key; 592 592 … … 598 598 } 599 599 600 void C DBClass::DestroyClass(CClass *pobj_c){600 void Classes::DestroyClass(CClass *pobj_c){ 601 601 if(pobj_c->pobj_NextClass){ 602 602 DestroyClass(pobj_c->pobj_NextClass); … … 606 606 } 607 607 608 C DBClass::CDBClass():608 Classes::Classes(): 609 609 pStringClass( NULL ), 610 610 pObjectClass( NULL ), … … 617 617 memset( pobj_ClassHash, 0, MAX_CLASS_HASH * sizeof(CClass *) ); 618 618 } 619 C DBClass::~CDBClass(){619 Classes::~Classes(){ 620 620 int i; 621 621 for(i=0;i<MAX_CLASS_HASH;i++){ … … 626 626 } 627 627 628 void C DBClass::ActionVtblSchedule(LONG_PTR ImageBase, LONG_PTR MemPos_CodeSection){628 void Classes::ActionVtblSchedule(LONG_PTR ImageBase, LONG_PTR MemPos_CodeSection){ 629 629 int i; 630 630 for(i=0;i<MAX_CLASS_HASH;i++){ … … 642 642 } 643 643 644 const CClass *C DBClass::Find( const NamespaceScopes &namespaceScopes, const string &name ) const644 const CClass *Classes::Find( const NamespaceScopes &namespaceScopes, const string &name ) const 645 645 { 646 646 int key; … … 669 669 670 670 // TypeDefも見る 671 int index = Smoothie:: Meta::typeDefs.GetIndex( namespaceScopes, name );671 int index = Smoothie::meta.typeDefs.GetIndex( namespaceScopes, name ); 672 672 if( index != -1 ){ 673 Type type = Smoothie:: Meta::typeDefs[index].GetBaseType();673 Type type = Smoothie::meta.typeDefs[index].GetBaseType(); 674 674 if( type.IsObject() ){ 675 675 return &type.GetClass(); … … 679 679 return NULL; 680 680 } 681 const CClass *C DBClass::Find( const string &fullName ) const681 const CClass *Classes::Find( const string &fullName ) const 682 682 { 683 683 char AreaName[VN_SIZE] = ""; //オブジェクト変数 … … 688 688 } 689 689 690 CClass *C DBClass::AddClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine){690 CClass *Classes::AddClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine){ 691 691 ////////////////////////////////////////////////////////////////////////// 692 692 // クラスを追加 … … 735 735 } 736 736 737 void C DBClass::InitNames(void){737 void Classes::InitNames(void){ 738 738 extern char *basbuf; 739 739 int i, i2; … … 741 741 742 742 // Blittable型管理オブジェクトを初期化 743 Smoothie:: Meta::blittableTypes.clear();743 Smoothie::meta.blittableTypes.clear(); 744 744 745 745 // 名前空間管理 … … 858 858 859 859 // Blittable型として登録 860 Smoothie:: Meta::blittableTypes.push_back( BlittableType( blittableType, pClass ) );861 } 862 } 863 } 864 } 865 866 867 void C DBClass::AddMethod(CClass *pobj_c, Prototype::Accessibility accessibility, BOOL bStatic, bool isConst, bool isAbstract,860 Smoothie::meta.blittableTypes.push_back( BlittableType( blittableType, pClass ) ); 861 } 862 } 863 } 864 } 865 866 867 void Classes::AddMethod(CClass *pobj_c, Prototype::Accessibility accessibility, BOOL bStatic, bool isConst, bool isAbstract, 868 868 bool isVirtual, bool isOverride, char *buffer, int nowLine){ 869 869 int i,i2; … … 987 987 } 988 988 989 BOOL C DBClass::MemberVar_LoopRefCheck(const CClass &objClass){989 BOOL Classes::MemberVar_LoopRefCheck(const CClass &objClass){ 990 990 int i2,bRet=1; 991 991 BOOST_FOREACH( CMember *pMember, objClass.dynamicMembers ){ … … 1010 1010 } 1011 1011 1012 void C DBClass::GetClass_recur(const char *lpszInheritsClass){1012 void Classes::GetClass_recur(const char *lpszInheritsClass){ 1013 1013 extern char *basbuf; 1014 1014 int i,i2,i3,sub_address,top_pos; … … 1461 1461 } 1462 1462 1463 void C DBClass::GetAllClassInfo(void){1463 void Classes::GetAllClassInfo(void){ 1464 1464 //ループ継承チェック用のクラス 1465 1465 pobj_LoopRefCheck=new CLoopRefCheck(); … … 1475 1475 } 1476 1476 1477 void C DBClass::Compile_System_InitializeUserTypes(){1477 void Classes::Compile_System_InitializeUserTypes(){ 1478 1478 char temporary[VN_SIZE]; 1479 1479 … … 1604 1604 1605 1605 1606 CClass *C DBClass::GetStringClassPtr() const1606 CClass *Classes::GetStringClassPtr() const 1607 1607 { 1608 1608 if( !pStringClass ){ … … 1612 1612 return pStringClass; 1613 1613 } 1614 CClass *C DBClass::GetObjectClassPtr() const1614 CClass *Classes::GetObjectClassPtr() const 1615 1615 { 1616 1616 if( !pObjectClass ){ … … 1621 1621 } 1622 1622 1623 void C DBClass::StartCompile( UserProc *pUserProc ){1623 void Classes::StartCompile( UserProc *pUserProc ){ 1624 1624 pCompilingClass = pUserProc->GetParentClassPtr(); 1625 1625 if( pCompilingClass ){ … … 1638 1638 } 1639 1639 } 1640 const CClass *C DBClass::GetNowCompilingClass() const1640 const CClass *Classes::GetNowCompilingClass() const 1641 1641 { 1642 1642 return pCompilingClass; 1643 1643 } 1644 const CMethod *C DBClass::GetNowCompilingMethodInfo(){1644 const CMethod *Classes::GetNowCompilingMethodInfo(){ 1645 1645 return pCompilingMethod; 1646 1646 } … … 1653 1653 ////////////////////// 1654 1654 1655 void C DBClass::Iterator_Init(void){1655 void Classes::Iterator_Init(void){ 1656 1656 if(ppobj_IteClass) HeapDefaultFree(ppobj_IteClass); 1657 1657 … … 1676 1676 } 1677 1677 } 1678 void C DBClass::Iterator_Reset(void){1678 void Classes::Iterator_Reset(void){ 1679 1679 iIteNextNum = 0; 1680 1680 } 1681 BOOL C DBClass::Iterator_HasNext(void){1681 BOOL Classes::Iterator_HasNext(void){ 1682 1682 if(iIteNextNum<iIteMaxNum) return 1; 1683 1683 return 0; 1684 1684 } 1685 CClass *C DBClass::Iterator_GetNext(void){1685 CClass *Classes::Iterator_GetNext(void){ 1686 1686 CClass *pobj_c; 1687 1687 pobj_c=ppobj_IteClass[iIteNextNum]; … … 1689 1689 return pobj_c; 1690 1690 } 1691 int C DBClass::Iterator_GetMaxCount(void){1691 int Classes::Iterator_GetMaxCount(void){ 1692 1692 return iIteMaxNum; 1693 1693 }
Note:
See TracChangeset
for help on using the changeset viewer.