Changeset 182 in dev for trunk/abdev/BasicCompiler_Common/Diagnose.cpp
- Timestamp:
- Jun 24, 2007, 6:49:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Diagnose.cpp
r167 r182 1 #include <jenga/include/smoothie/Smoothie.h> 2 1 3 #include <Program.h> 2 4 … … 66 68 // イテレータをリセット 67 69 extern Classes *pobj_DBClass; 68 pobj_DBClass->Iterator_Reset();70 Smoothie::GetMeta().GetClasses().Iterator_Reset(); 69 71 70 while( pobj_DBClass->Iterator_HasNext() ){72 while( Smoothie::GetMeta().GetClasses().Iterator_HasNext() ){ 71 73 int codeSizeOfClass = 0; 72 74 73 CClass &objClass = * pobj_DBClass->Iterator_GetNext();75 CClass &objClass = *Smoothie::GetMeta().GetClasses().Iterator_GetNext(); 74 76 75 77 if( !objClass.IsEnum() ){ … … 79 81 80 82 // 動的メソッド 81 foreach( const CMethod *pMethod, objClass.GetMethods() ){83 BOOST_FOREACH( const CMethod *pMethod, objClass.GetMethods() ){ 82 84 if( pMethod->pUserProc->IsCompiled() ){ 83 85 codeSizeOfClass += pMethod->pUserProc->GetCodeSize(); … … 86 88 87 89 // 静的メソッド 88 foreach( const CMethod *pMethod, objClass.GetStaticMethods() ){90 BOOST_FOREACH( const CMethod *pMethod, objClass.GetStaticMethods() ){ 89 91 codeSizeOfClass += pMethod->pUserProc->GetCodeSize(); 90 92 } … … 106 108 // イテレータをリセット 107 109 extern Classes *pobj_DBClass; 108 pobj_DBClass->Iterator_Reset();110 Smoothie::GetMeta().GetClasses().Iterator_Reset(); 109 111 110 while( pobj_DBClass->Iterator_HasNext() ){112 while( Smoothie::GetMeta().GetClasses().Iterator_HasNext() ){ 111 113 int codeSizeOfClass = 0; 112 114 113 CClass &objClass = * pobj_DBClass->Iterator_GetNext();115 CClass &objClass = *Smoothie::GetMeta().GetClasses().Iterator_GetNext(); 114 116 115 117 // 動的メソッド 116 foreach( const CMethod *pMethod, objClass.GetMethods() ){118 BOOST_FOREACH( const CMethod *pMethod, objClass.GetMethods() ){ 117 119 if( pMethod->pUserProc->IsCompiled() ){ 118 120 codeSizeOfClass += pMethod->pUserProc->GetCodeSize(); … … 121 123 122 124 // 静的メソッド 123 foreach( const CMethod *pMethod, objClass.GetStaticMethods() ){125 BOOST_FOREACH( const CMethod *pMethod, objClass.GetStaticMethods() ){ 124 126 codeSizeOfClass += pMethod->pUserProc->GetCodeSize(); 125 127 }
Note:
See TracChangeset
for help on using the changeset viewer.