- Timestamp:
- Sep 24, 2008, 2:02:16 AM (16 years ago)
- Location:
- trunk/ab5.0/abdev
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
r719 r750 1 1 #include "stdafx.h" 2 #include <process.h> 3 #include <fcntl.h> 4 #include <io.h> 2 5 3 6 #include <ver.h> -
trunk/ab5.0/abdev/BasicCompiler_Common/Debug.cpp
r743 r750 61 61 62 62 extern BasicSources sourcesLinkRelationalObjectModule; 63 BOOST_FOREACH( const BasicSource &source, sourcesLinkRelationalObjectModule )63 foreach( const BasicSource &source, sourcesLinkRelationalObjectModule ) 64 64 { 65 65 pIncludedFilesRelation = &source.GetIncludedFilesRelation(); … … 347 347 void Set_DebugSys_dwThreadID() 348 348 { 349 BOOST_FOREACH( DebugSection *pDebugSection, debugSectionCollection.debugSections )349 foreach( DebugSection *pDebugSection, debugSectionCollection.debugSections ) 350 350 { 351 351 ULONG_PTR lpAccBytes; -
trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r743 r750 104 104 // オブジェクトモジュールリストに類似したソースコードリストを作成 105 105 BasicSources sources; 106 BOOST_FOREACH( const ObjectModule *pObjectModule, compiler.staticLibraries )106 foreach( const ObjectModule *pObjectModule, compiler.staticLibraries ) 107 107 { 108 108 sources.push_back( pObjectModule->GetSource() ); … … 138 138 *(long *)(buffer+i2)=(long)sourceLines.size(); 139 139 i2+=sizeof(long); 140 BOOST_FOREACH( const SourceLine &sourceLine, sourceLines )140 foreach( const SourceLine &sourceLine, sourceLines ) 141 141 { 142 142 *(long *)(buffer+i2) = sourceLine.GetNativeCodePos(); … … 173 173 memcpy(buffer,OpBuffer,SizeOf_CodeSection); 174 174 175 BOOST_FOREACH( const SourceLine &sourceLine, _oldSourceLines )175 foreach( const SourceLine &sourceLine, _oldSourceLines ) 176 176 { 177 177 if(!( … … 433 433 DebugSectionCollection::~DebugSectionCollection() 434 434 { 435 BOOST_FOREACH( DebugSection *pDebugSection, debugSections )435 foreach( DebugSection *pDebugSection, debugSections ) 436 436 { 437 437 delete pDebugSection; -
trunk/ab5.0/abdev/BasicCompiler_Common/Diagnose.cpp
r527 r750 74 74 75 75 // 動的メソッド 76 BOOST_FOREACH( const CMethod *pMethod, objClass.GetDynamicMethods() ){76 foreach( const CMethod *pMethod, objClass.GetDynamicMethods() ){ 77 77 if( pMethod->GetUserProc().IsCompiled() ){ 78 78 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); … … 81 81 82 82 // 静的メソッド 83 BOOST_FOREACH( const CMethod *pMethod, objClass.GetStaticMethods() ){83 foreach( const CMethod *pMethod, objClass.GetStaticMethods() ){ 84 84 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); 85 85 } … … 108 108 109 109 // 動的メソッド 110 BOOST_FOREACH( const CMethod *pMethod, objClass.GetDynamicMethods() ){110 foreach( const CMethod *pMethod, objClass.GetDynamicMethods() ){ 111 111 if( pMethod->GetUserProc().IsCompiled() ){ 112 112 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); … … 115 115 116 116 // 静的メソッド 117 BOOST_FOREACH( const CMethod *pMethod, objClass.GetStaticMethods() ){117 foreach( const CMethod *pMethod, objClass.GetStaticMethods() ){ 118 118 codeSizeOfClass += pMethod->GetUserProc().GetCodeSize(); 119 119 } -
trunk/ab5.0/abdev/BasicCompiler_Common/MakeExe.cpp
r734 r750 222 222 ActiveBasic::Common::Environment::SetRemoveExternalMark( true ); 223 223 224 BOOST_FOREACH( const std::string &filePath, compiler.staticLibraryFilePaths )224 foreach( const std::string &filePath, compiler.staticLibraryFilePaths ) 225 225 { 226 226 Jenga::Common::Path path( filePath ); -
trunk/ab5.0/abdev/BasicCompiler_Common/PESchedule.cpp
r485 r750 119 119 NowPageRVAToReloc=0; 120 120 121 BOOST_FOREACH( DWORD addr, codeSectionAddresses )121 foreach( DWORD addr, codeSectionAddresses ) 122 122 { 123 123 extern int MemPos_CodeSection; … … 125 125 } 126 126 127 BOOST_FOREACH( DWORD addr, dataSectionAddresses )127 foreach( DWORD addr, dataSectionAddresses ) 128 128 { 129 129 extern int MemPos_DataSection; -
trunk/ab5.0/abdev/BasicCompiler_Common/ParamImpl.cpp
r708 r750 81 81 { 82 82 ParmsNum = 0; 83 BOOST_FOREACH( Parameter *pParam, params ){83 foreach( Parameter *pParam, params ){ 84 84 Parms[ParmsNum]=0; 85 85 ParmsNum++; … … 219 219 for( int level=OVERLOAD_MIN_LEVEL; level<=OVERLOAD_MAX_LEVEL; level++ ) 220 220 { 221 BOOST_FOREACH( const UserProc *pTempUserProc, subs )221 foreach( const UserProc *pTempUserProc, subs ) 222 222 { 223 223 bool isErrored = false; … … 260 260 261 261 if( !pUserProc ){ 262 BOOST_FOREACH( const UserProc *pTempUserProc, subs )262 foreach( const UserProc *pTempUserProc, subs ) 263 263 { 264 264 //エラーチェック -
trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp
r624 r750 96 96 97 97 //カーソルの枚数を計算(CursorNumに格納) 98 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.cursorResources )98 foreach( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.cursorResources ) 99 99 { 100 100 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); … … 116 116 117 117 //ビットマップのファイルの有無を確認 118 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.bitmapResources )118 foreach( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.bitmapResources ) 119 119 { 120 120 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); … … 128 128 129 129 //アイコンの枚数を計算(IconNumに格納) 130 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.iconResources )130 foreach( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.iconResources ) 131 131 { 132 132 hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); -
trunk/ab5.0/abdev/BasicCompiler_Common/VarList.cpp
r748 r750 223 223 tv.item.pszText=VarData; 224 224 225 BOOST_FOREACH( Member *pMember, objClass.GetDynamicMembers() ){225 foreach( Member *pMember, objClass.GetDynamicMembers() ){ 226 226 if(bPtr){ 227 227 lstrcpy(VarName,"->"); … … 327 327 extern int MemPos_RWSection; 328 328 329 BOOST_FOREACH( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){329 foreach( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 330 330 331 331 //スコープ外の場合は無視 … … 421 421 if(!pUserProc) return; 422 422 423 BOOST_FOREACH( Variable *pVar, pUserProc->GetLocalVars() ){423 foreach( Variable *pVar, pUserProc->GetLocalVars() ){ 424 424 425 425 //スコープ外の場合は無視 … … 507 507 } 508 508 509 BOOST_FOREACH( Member *pMember, pUserProc->GetParentClassPtr()->GetDynamicMembers() ){509 foreach( Member *pMember, pUserProc->GetParentClassPtr()->GetDynamicMembers() ){ 510 510 offset=pUserProc->GetParentClassPtr()->GetMemberOffset( pMember->GetName().c_str()); 511 511 -
trunk/ab5.0/abdev/BasicCompiler_Common/VariableOpe.cpp
r721 r750 182 182 extern WithInfos withInfos; 183 183 buffer[0]=0; 184 BOOST_FOREACH( const WithInfo &withInfo, withInfos )184 foreach( const WithInfo &withInfo, withInfos ) 185 185 { 186 186 lstrcat( buffer, withInfo.name.c_str() ); … … 192 192 std::string tmp; 193 193 tmp.reserve(1024); 194 BOOST_FOREACH( const WithInfo &withInfo, withInfos )194 foreach( const WithInfo &withInfo, withInfos ) 195 195 { 196 196 tmp+=withInfo.name; -
trunk/ab5.0/abdev/BasicCompiler_Common/WatchList.cpp
r561 r750 326 326 UserProc *pUserProc = GetSubFromObp(obp_Rip); 327 327 328 BOOST_FOREACH( Variable *pVar, pUserProc->GetLocalVars() ){328 foreach( Variable *pVar, pUserProc->GetLocalVars() ){ 329 329 if( pVar->GetName() == "_System_LocalThis" ){ 330 330 return pVar->GetOffsetAddress(); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Enum.h
r547 r750 48 48 const EnumMember &GetEnumMember( const std::string &memberName ) const 49 49 { 50 BOOST_FOREACH( const EnumMember &member, members )50 foreach( const EnumMember &member, members ) 51 51 { 52 52 if( member.GetName() == memberName ) … … 71 71 { 72 72 const EnumInfoCollection &thisEnumInfoCollection = *this; 73 BOOST_FOREACH( const EnumInfo &enumInfo, thisEnumInfoCollection )73 foreach( const EnumInfo &enumInfo, thisEnumInfoCollection ) 74 74 { 75 75 if( enumInfo.IsEqualSymbol( symbol ) ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/BreakPoint.cpp
r743 r750 37 37 38 38 extern BasicSources sourcesLinkRelationalObjectModule; 39 BOOST_FOREACH( const BasicSource &source, sourcesLinkRelationalObjectModule )39 foreach( const BasicSource &source, sourcesLinkRelationalObjectModule ) 40 40 { 41 41 pIncludedFilesRelation = &source.GetIncludedFilesRelation(); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp
r551 r750 28 28 void CodeGenerator::ResolveExitSubSchedule() 29 29 { 30 BOOST_FOREACH( long exitSubCodePosition, exitSubCodePositions )30 foreach( long exitSubCodePosition, exitSubCodePositions ) 31 31 { 32 32 pNativeCode->Overwrite( exitSubCodePosition, (long)( pNativeCode->GetSize()-(exitSubCodePosition+sizeof(long)) ) ); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Compiler.cpp
r745 r750 24 24 Compiler::~Compiler() 25 25 { 26 BOOST_FOREACH( ObjectModule *pStaticLibrary, staticLibraries )26 foreach( ObjectModule *pStaticLibrary, staticLibraries ) 27 27 { 28 28 delete pStaticLibrary; … … 33 33 void Compiler::PreStaticLink( const ObjectModules &staticLibraries ) 34 34 { 35 BOOST_FOREACH( const ObjectModule *pStaticLibrary, staticLibraries )35 foreach( const ObjectModule *pStaticLibrary, staticLibraries ) 36 36 { 37 37 // 関連オブジェクトモジュールの名前リスト … … 41 41 void Compiler::StaticLink( ObjectModules &staticLibraries ) 42 42 { 43 BOOST_FOREACH( ObjectModule *pStaticLibrary, staticLibraries )43 foreach( ObjectModule *pStaticLibrary, staticLibraries ) 44 44 { 45 45 if( &this->GetObjectModule() == pStaticLibrary ) … … 160 160 // 仮型パラメータを実型パラメータに変換 161 161 Types actualTypes; 162 BOOST_FOREACH( const GenericType &genericType, genericTypes )162 foreach( const GenericType &genericType, genericTypes ) 163 163 { 164 164 actualTypes.push_back( genericType.GetType() ); … … 378 378 // テンプレート展開済みのクラスの場合 379 379 std::string actualGenericTypesName; 380 BOOST_FOREACH( const Type &typeParameter, type.GetClass().expandedClassActualTypeParameters )380 foreach( const Type &typeParameter, type.GetClass().expandedClassActualTypeParameters ) 381 381 { 382 382 if( actualGenericTypesName.size() ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/DataTableGenerator.cpp
r745 r750 28 28 //dataTable.schedules.push_back( Schedule( Schedule::TypeInfo, &objClass, dataTableOffset + offsetForTypeInfo ) ); 29 29 30 BOOST_FOREACH( const std::string &initMemberValue, initMemberValues )30 foreach( const std::string &initMemberValue, initMemberValues ) 31 31 { 32 32 int i = 0; … … 207 207 bool isSuccessful = true; 208 208 int i = 0; 209 BOOST_FOREACH( const std::string ¶mStr, parameters )209 foreach( const std::string ¶mStr, parameters ) 210 210 { 211 211 if( paramStr.size() == 0 ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Exception.cpp
r745 r750 50 50 void ResolveJmpFinally() 51 51 { 52 BOOST_FOREACH( const PertialSchedule *pPertialSchedule, finallySchedules )52 foreach( const PertialSchedule *pPertialSchedule, finallySchedules ) 53 53 { 54 54 compiler.codeGenerator.opfix_JmpPertialSchedule( pPertialSchedule ); … … 192 192 193 193 int pos = 0; 194 BOOST_FOREACH( const CatchScope &catchScope, catchScopes )194 foreach( const CatchScope &catchScope, catchScopes ) 195 195 { 196 196 // パラメータのクラス名 … … 214 214 215 215 pos = 0; 216 BOOST_FOREACH( const CatchScope &catchScope, catchScopes )216 foreach( const CatchScope &catchScope, catchScopes ) 217 217 { 218 218 // パラメータのクラス名 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Class.cpp
r732 r750 208 208 209 209 bool result = true; 210 BOOST_FOREACH( Member *pMember, objClass.GetDynamicMembers() ){210 foreach( Member *pMember, objClass.GetDynamicMembers() ){ 211 211 if(pMember->GetType().IsStruct()){ 212 212 //循環参照でないかをチェック … … 332 332 333 333 //メソッド 334 BOOST_FOREACH( const CMethod *pMethod, pobj_c->GetDynamicMethods() )334 foreach( const CMethod *pMethod, pobj_c->GetDynamicMethods() ) 335 335 { 336 336 //基底クラスと重複する場合はオーバーライドを行う … … 363 363 { 364 364 // インターフェイス メソッドのオーバーライド 365 BOOST_FOREACH( ::Interface *pInterface, pobj_c->GetInterfaces() )365 foreach( ::Interface *pInterface, pobj_c->GetInterfaces() ) 366 366 { 367 367 if( interfaceName[0] ) … … 438 438 // 型パラメータ文字列から型データを取得 439 439 Types actualTypeParameters; 440 BOOST_FOREACH( const std::string &typeParameterStr, typeParameterStrings )440 foreach( const std::string &typeParameterStr, typeParameterStrings ) 441 441 { 442 442 Type type; … … 517 517 { 518 518 // まずは継承されたインターフェイスを実装する 519 BOOST_FOREACH( ::Interface *pInheritsInterface, pInterface->GetClass().GetInterfaces() )519 foreach( ::Interface *pInheritsInterface, pInterface->GetClass().GetInterfaces() ) 520 520 { 521 521 // TODO: actualTypeParametersの引渡し … … 532 532 // 基底クラスのメソッドからインターフェイスメソッドを再実装する 533 533 ///////////////////////////////////////////////////////////////// 534 BOOST_FOREACH( CMethod *pMethod, _class.GetDynamicMethods() )534 foreach( CMethod *pMethod, _class.GetDynamicMethods() ) 535 535 { 536 536 DynamicMethod *pMethodForOverride = pInterface->GetDynamicMethods().FindForOverride( pInterface->GetActualTypeParameters(), &pMethod->GetUserProc() ); … … 612 612 SplitParameter( interfaceNames, paramStrs ); 613 613 614 BOOST_FOREACH( const std::string ¶mStr, paramStrs )614 foreach( const std::string ¶mStr, paramStrs ) 615 615 { 616 616 char className[VN_SIZE]; … … 619 619 620 620 Types actualTypeParameters; 621 BOOST_FOREACH( const std::string &typeParameterStr, typeParameterStrings )621 foreach( const std::string &typeParameterStr, typeParameterStrings ) 622 622 { 623 623 Type type; … … 821 821 // 型パラメータ文字列から型データを取得 822 822 Types actualTypeParameters; 823 BOOST_FOREACH( const std::string &typeParameterStr, typeParameterStrings )823 foreach( const std::string &typeParameterStr, typeParameterStrings ) 824 824 { 825 825 Type type; … … 1389 1389 1390 1390 // パラメータのジェネリック型を解決 1391 BOOST_FOREACH( const Parameter *pParam, pBaseMethod->GetUserProc().Params() )1391 foreach( const Parameter *pParam, pBaseMethod->GetUserProc().Params() ) 1392 1392 { 1393 1393 Type type = pParam->IsTypeParameter() … … 1398 1398 pUserProc->GetParameters().push_back( new Parameter( *pParam, type ) ); 1399 1399 } 1400 BOOST_FOREACH( const Parameter *pParam, pBaseMethod->GetUserProc().RealParams() )1400 foreach( const Parameter *pParam, pBaseMethod->GetUserProc().RealParams() ) 1401 1401 { 1402 1402 Type type = pParam->IsTypeParameter() … … 1440 1440 // 実型パラメータに値型が含まれないとき 1441 1441 bool isValueType = false; 1442 BOOST_FOREACH( const Type &actualType, actualTypes )1442 foreach( const Type &actualType, actualTypes ) 1443 1443 { 1444 1444 if( actualType.IsValueType() ) … … 1453 1453 1454 1454 // 展開済みのクラスがあればそれを返す 1455 BOOST_FOREACH( const ExpandedTemplateClass *pExpandedTemplateClass, _class.expandedTemplateClasses )1455 foreach( const ExpandedTemplateClass *pExpandedTemplateClass, _class.expandedTemplateClasses ) 1456 1456 { 1457 1457 if( pExpandedTemplateClass->GetActualTypes().IsEquals( actualTypes ) ) … … 1487 1487 { 1488 1488 Types expandedSuperClassActualTypes; 1489 BOOST_FOREACH( const Type &superClassActualType, _class.GetSuperClassActualTypeParameters() )1489 foreach( const Type &superClassActualType, _class.GetSuperClassActualTypeParameters() ) 1490 1490 { 1491 1491 expandedSuperClassActualTypes.push_back( TemplateExpand_ResolveType( superClassActualType, actualTypes ) ); … … 1497 1497 1498 1498 // インターフェイスのジェネリック型を解決 1499 BOOST_FOREACH( const ::Interface *pInterface, _class.GetInterfaces() )1499 foreach( const ::Interface *pInterface, _class.GetInterfaces() ) 1500 1500 { 1501 1501 const CClass *pExpandedInterfaceClass = TemplateExpand( *const_cast<CClass *>(&pInterface->GetClass()), actualTypes ); … … 1504 1504 1505 1505 // インターフェイス メソッドのジェネリック型を解決 1506 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() )1506 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ) 1507 1507 { 1508 1508 if( pMethod->GetUserProc().GetParentClassPtr() == &_class ) … … 1533 1533 1534 1534 // メンバのジェネリック型を解決 1535 BOOST_FOREACH( const Member *pMember, _class.GetDynamicMembers() )1535 foreach( const Member *pMember, _class.GetDynamicMembers() ) 1536 1536 { 1537 1537 Type type = pMember->GetType(); … … 1549 1549 1550 1550 // クラス メソッドのジェネリック型を解決 1551 BOOST_FOREACH( const CMethod *pMethod, _class.GetDynamicMethods() )1551 foreach( const CMethod *pMethod, _class.GetDynamicMethods() ) 1552 1552 { 1553 1553 if( pMethod->GetUserProc().GetParentClassPtr() == &_class ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp
r735 r750 144 144 std::string namespaceScopesCommandStr; 145 145 std::string endNamespaceScopesCommandStr; 146 BOOST_FOREACH( const std::string &namespaceStr, dg.GetNamespaceScopes() )146 foreach( const std::string &namespaceStr, dg.GetNamespaceScopes() ) 147 147 { 148 148 if( namespaceScopesCommandStr.size() ) … … 205 205 LexicalAnalyzer::ExtractParameterVarNames( dg.GetParamStr().c_str(), paramVarNames, dg.GetSourceIndex() ); 206 206 std::string tempParamStrForCall; 207 BOOST_FOREACH( const std::string &varName, paramVarNames )207 foreach( const std::string &varName, paramVarNames ) 208 208 { 209 209 if( !tempParamStrForCall.empty() ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Enum.cpp
r715 r750 160 160 buffer.reserve(65536); 161 161 162 BOOST_FOREACH( const EnumInfo &enumInfo, enums )162 foreach( const EnumInfo &enumInfo, enums ) 163 163 { 164 BOOST_FOREACH( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){164 foreach( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){ 165 165 buffer.append("Namespace ").append(namespaceStr) += '\n'; 166 166 } … … 179 179 buffer.append("\tEnd Sub\n"); 180 180 181 BOOST_FOREACH( const EnumMember &member, enumInfo.GetMembers() )181 foreach( const EnumMember &member, enumInfo.GetMembers() ) 182 182 { 183 183 buffer.append("\tStatic ") … … 190 190 buffer.append("End Class\n"); 191 191 192 BOOST_FOREACH( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){192 foreach( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){ 193 193 buffer.append("End Namespace\n"); 194 194 } -
trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Procedure.cpp
r710 r750 120 120 121 121 //パラメータ 122 BOOST_FOREACH( const std::string ¶mStr, parameterStrings )122 foreach( const std::string ¶mStr, parameterStrings ) 123 123 { 124 124 int i = 0; … … 384 384 385 385 //パラメータをコピー 386 BOOST_FOREACH( Parameter *pParam, userProc.GetParameters() ){386 foreach( Parameter *pParam, userProc.GetParameters() ){ 387 387 userProc.RealParams().push_back( new Parameter( *pParam ) ); 388 388 } … … 733 733 { 734 734 ::Interface *pTargetInterface = NULL; 735 BOOST_FOREACH( ::Interface *pInterface, pobj_c->GetInterfaces() )735 foreach( ::Interface *pInterface, pobj_c->GetInterfaces() ) 736 736 { 737 737 if( pInterface->GetClass().GetName() == interfaceName ) … … 855 855 856 856 // パラメータのエラーチェック 857 BOOST_FOREACH( const Parameter *pParam, pDllProc->Params() ){857 foreach( const Parameter *pParam, pDllProc->Params() ){ 858 858 if( pParam->IsObject() ){ 859 859 compiler.errorMessenger.Output(25,pParam->GetVarName(),nowLine); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalScope.cpp
r677 r750 23 23 } 24 24 void LexicalScope::RunScheduleOfBreak(){ 25 BOOST_FOREACH( const PertialSchedule *pBreakPertialSchedule, breakPertialSchedules )25 foreach( const PertialSchedule *pBreakPertialSchedule, breakPertialSchedules ) 26 26 { 27 27 compiler.codeGenerator.opfix_JmpPertialSchedule( pBreakPertialSchedule ); … … 76 76 77 77 //使用済みローカル変数の生存チェックを外す 78 BOOST_FOREACH( Variable *pVar, (*pVars) )78 foreach( Variable *pVar, (*pVars) ) 79 79 { 80 80 if( pVar->isLiving && pVar->GetScopeLevel() == level ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Linker.cpp
r587 r750 7 7 void Linker::ResolveDataTableSchedules( long dataSectionBaseOffset ) 8 8 { 9 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )9 foreach( const Schedule &schedule, nativeCode.GetSchedules() ) 10 10 { 11 11 if( schedule.GetType() == Schedule::DataTable ) … … 18 18 } 19 19 20 BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )20 foreach( const Schedule &schedule, dataTable.schedules ) 21 21 { 22 22 if( schedule.GetType() == Schedule::DataTable ) … … 40 40 void Linker::ResolveCatchAddressSchedules( long codeSectionBaseOffset ) 41 41 { 42 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )42 foreach( const Schedule &schedule, nativeCode.GetSchedules() ) 43 43 { 44 44 if( schedule.GetType() == Schedule::CatchAddress ) … … 55 55 } 56 56 57 BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )57 foreach( const Schedule &schedule, dataTable.schedules ) 58 58 { 59 59 if( schedule.GetType() == Schedule::CatchAddress ) … … 81 81 void Linker::ResolveDllProcSchedules( long codeSectionBaseOffset, long importSectionBaseOffset, long lookupSize, long hintSize ) 82 82 { 83 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )83 foreach( const Schedule &schedule, nativeCode.GetSchedules() ) 84 84 { 85 85 if( schedule.GetType() == Schedule::DllProc ) … … 105 105 void Linker::ResolveUserProcSchedules( long codeSectionBaseOffset ) 106 106 { 107 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )107 foreach( const Schedule &schedule, nativeCode.GetSchedules() ) 108 108 { 109 109 if( schedule.GetType() == Schedule::UserProc … … 139 139 int allInitVarSize = compiler.GetObjectModule().meta.GetGlobalVars().initAreaBuffer.GetSize(); 140 140 141 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )141 foreach( const Schedule &schedule, nativeCode.GetSchedules() ) 142 142 { 143 143 if( schedule.GetType() == Schedule::GlobalVar ) … … 163 163 void Linker::ResolveVtblSchedule( long dataSectionBaseOffset ) 164 164 { 165 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )165 foreach( const Schedule &schedule, nativeCode.GetSchedules() ) 166 166 { 167 167 if( schedule.GetType() == Schedule::ComVtbl ) … … 186 186 } 187 187 188 BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )188 foreach( const Schedule &schedule, dataTable.schedules ) 189 189 { 190 190 if( schedule.GetType() == Schedule::ComVtbl ) … … 226 226 void Linker::ResolveTypeInfoSchedule( long dataSectionBaseOffset ) 227 227 { 228 BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )228 foreach( const Schedule &schedule, dataTable.schedules ) 229 229 { 230 230 if( schedule.GetType() == Schedule::TypeInfo ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Messenger.cpp
r719 r750 409 409 { 410 410 int count = 0; 411 BOOST_FOREACH( const ErrorInfo &errorInfo, errorInfos )411 foreach( const ErrorInfo &errorInfo, errorInfos ) 412 412 { 413 413 if( !errorInfo.IsWarning() ) … … 425 425 { 426 426 int count = 0; 427 BOOST_FOREACH( const ErrorInfo &errorInfo, errorInfos )427 foreach( const ErrorInfo &errorInfo, errorInfos ) 428 428 { 429 429 if( errorInfo.IsWarning() ) … … 438 438 { 439 439 const ErrorInfo *pErrorInfo = NULL; 440 BOOST_FOREACH( const ErrorInfo &errorInfo, errorInfos )440 foreach( const ErrorInfo &errorInfo, errorInfos ) 441 441 { 442 442 if( errorInfo.GetErrorLineNum() == errorLineNum ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/ProcedureGenerator.cpp
r637 r750 47 47 48 48 int i=0; 49 BOOST_FOREACH( Member *member, objClass.GetStaticMembers() )49 foreach( Member *member, objClass.GetStaticMembers() ) 50 50 { 51 51 if( pEnumInfo ) … … 122 122 std::string result; 123 123 124 BOOST_FOREACH( const Member *pMember, _class.GetDynamicMembers() )124 foreach( const Member *pMember, _class.GetDynamicMembers() ) 125 125 { 126 126 if( result.size() ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/VtblGenerator.cpp
r632 r750 9 9 //関数テーブルに値をセット 10 10 int i2 = 0; 11 BOOST_FOREACH( const CMethod *pMethod, methods )11 foreach( const CMethod *pMethod, methods ) 12 12 { 13 13 if(pMethod->IsVirtual()){ … … 66 66 67 67 // インターフェイスのvtblを生成 68 BOOST_FOREACH( const ::Interface *pInterface, _class.GetInterfaces() )68 foreach( const ::Interface *pInterface, _class.GetInterfaces() ) 69 69 { 70 70 int tempVtblOffset = GenerateVTablePart( pInterface->GetDynamicMethods() ); … … 100 100 101 101 // テンプレート展開されたクラスも 102 BOOST_FOREACH( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, pClass->expandedTemplateClasses )102 foreach( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, pClass->expandedTemplateClasses ) 103 103 { 104 104 if( !pExpandedTemplateClass->GetClass().expandedTemplateClasses.empty() ) … … 149 149 150 150 // インターフェイスのvtbl 151 BOOST_FOREACH( const ::Interface *pInterface, _class.GetInterfaces() )151 foreach( const ::Interface *pInterface, _class.GetInterfaces() ) 152 152 { 153 153 LONG_PTR *pVtbl = (LONG_PTR *)((char *)compiler.GetObjectModule().dataTable.GetPtr() + pInterface->GetVtblOffset()); … … 184 184 185 185 // テンプレート展開されたクラスも 186 BOOST_FOREACH( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, pClass->expandedTemplateClasses )186 foreach( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, pClass->expandedTemplateClasses ) 187 187 { 188 188 if( !pExpandedTemplateClass->GetClass().expandedTemplateClasses.empty() ) -
trunk/ab5.0/abdev/ab_common/ab_common.vcproj
r640 r750 463 463 </File> 464 464 <File 465 RelativePath=".\include\libs.h" 466 > 467 </File> 468 <File 465 469 RelativePath=".\stdafx.h" 466 470 > -
trunk/ab5.0/abdev/ab_common/include/Lexical/Class.h
r728 r750 194 194 { 195 195 int i = 0; 196 BOOST_FOREACH( const GenericType &genericType, formalGenericTypes )196 foreach( const GenericType &genericType, formalGenericTypes ) 197 197 { 198 198 if( genericType.GetName() == name ) … … 206 206 bool IsExistFormalGenericTypeParameter( const std::string &name ) const 207 207 { 208 BOOST_FOREACH( const GenericType &genericType, formalGenericTypes )208 foreach( const GenericType &genericType, formalGenericTypes ) 209 209 { 210 210 if( genericType.GetName() == name ) -
trunk/ab5.0/abdev/ab_common/include/Lexical/DataTable.h
r640 r750 104 104 105 105 // スケジュールを追加 106 BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )106 foreach( const Schedule &schedule, dataTable.schedules ) 107 107 { 108 108 this->schedules.push_back( -
trunk/ab5.0/abdev/ab_common/include/Lexical/Namespace.h
r737 r750 38 38 39 39 bool isFirst = true; 40 BOOST_FOREACH( const std::string &itemStr, me ){40 foreach( const std::string &itemStr, me ){ 41 41 if( isFirst ){ 42 42 isFirst = false; -
trunk/ab5.0/abdev/ab_common/include/Lexical/Procedure.h
r702 r750 57 57 } 58 58 ~Procedure(){ 59 BOOST_FOREACH( Parameter *pParam, params ){59 foreach( Parameter *pParam, params ){ 60 60 delete pParam; 61 61 } -
trunk/ab5.0/abdev/ab_common/include/Lexical/Type.h
r713 r750 361 361 { 362 362 const BlittableTypes &blittableTypes = *this; 363 BOOST_FOREACH( const BlittableType &blittableType, blittableTypes ){363 foreach( const BlittableType &blittableType, blittableTypes ){ 364 364 if( blittableType.GetBasicType().Equals( type ) ){ 365 365 return true; … … 371 371 { 372 372 const BlittableTypes &blittableTypes = *this; 373 BOOST_FOREACH( const BlittableType &blittableType, blittableTypes ){373 foreach( const BlittableType &blittableType, blittableTypes ){ 374 374 if( blittableType.GetBasicType().Equals( type ) ){ 375 375 return blittableType; … … 384 384 { 385 385 const BlittableTypes &blittableTypes = *this; 386 BOOST_FOREACH( const BlittableType &blittableType, blittableTypes ){386 foreach( const BlittableType &blittableType, blittableTypes ){ 387 387 if( blittableType.GetBasicType().Equals( type ) ){ 388 388 return blittableType.GetClassPtr(); -
trunk/ab5.0/abdev/ab_common/include/ab_common.h
r640 r750 2 2 3 3 #define trace_for_serialize( msg ) 4 5 #include "libs.h" 4 6 5 7 #include "BasicFixed.h" -
trunk/ab5.0/abdev/ab_common/src/Lexical/Class.cpp
r735 r750 99 99 // 仮想関数になるメソッドに使用チェックをつける 100 100 const CClass &_class = *this; 101 BOOST_FOREACH( const CMethod *pMethod, _class.GetDynamicMethods() )101 foreach( const CMethod *pMethod, _class.GetDynamicMethods() ) 102 102 { 103 103 if( pMethod->IsVirtual() ) … … 108 108 109 109 // インターフェイスメソッドに使用チェックをつける 110 BOOST_FOREACH( const ::Interface *pInterface, _class.GetInterfaces() )111 { 112 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() )110 foreach( const ::Interface *pInterface, _class.GetInterfaces() ) 111 { 112 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ) 113 113 { 114 114 pMethod->GetUserProc().Using(); … … 210 210 bool CClass::IsInheritsInterface( const CClass *pInterfaceClass ) const 211 211 { 212 BOOST_FOREACH( const ::Interface *pInterface, interfaces ){212 foreach( const ::Interface *pInterface, interfaces ){ 213 213 if( pInterfaceClass == &pInterface->GetClass() ){ 214 214 return true; … … 223 223 const Methods& inheritsClassMethods = inheritsClass.GetDynamicMethods(); 224 224 GetDynamicMethods().reserve( inheritsClassMethods.size() ); 225 BOOST_FOREACH( const CMethod *pBaseMethod, inheritsClassMethods ){225 foreach( const CMethod *pBaseMethod, inheritsClassMethods ){ 226 226 CMethod *pMethod = new DynamicMethod( *pBaseMethod ); 227 227 … … 256 256 const Interfaces& inheritsClassInterfaces = inheritsClass.GetInterfaces(); 257 257 interfaces.reserve( inheritsClassInterfaces.size() ); 258 BOOST_FOREACH( const ::Interface *pInterface, inheritsClassInterfaces )258 foreach( const ::Interface *pInterface, inheritsClassInterfaces ) 259 259 { 260 260 interfaces.push_back( new ::Interface( *pInterface ) ); … … 298 298 299 299 //メソッド 300 BOOST_FOREACH( const CMethod *pMethod, GetDynamicMethods() ){300 foreach( const CMethod *pMethod, GetDynamicMethods() ){ 301 301 if( name == pMethod->GetUserProc().GetName() ){ 302 302 return 1; … … 320 320 321 321 // 動的メンバ 322 BOOST_FOREACH( const Member *pMember, dynamicMembers )322 foreach( const Member *pMember, dynamicMembers ) 323 323 { 324 324 if( GetName() == pMember->GetName() ) … … 329 329 330 330 // 静的メンバ 331 BOOST_FOREACH( Member *pMember, staticMembers ){331 foreach( Member *pMember, staticMembers ){ 332 332 if( GetName() == pMember->GetName() ){ 333 333 return true; … … 350 350 } 351 351 352 BOOST_FOREACH( Member *pMember, GetDynamicMembers() )352 foreach( Member *pMember, GetDynamicMembers() ) 353 353 { 354 354 if( pMember->GetName() == memberName ) … … 366 366 367 367 // インターフェイス メソッド 368 BOOST_FOREACH( ::Interface *pInterface, GetInterfaces() )368 foreach( ::Interface *pInterface, GetInterfaces() ) 369 369 { 370 370 pInterface->GetDynamicMethods().Enum( methodName, subs ); … … 379 379 { 380 380 // インターフェイス メソッド 381 BOOST_FOREACH( ::Interface *pInterface, GetInterfaces() )381 foreach( ::Interface *pInterface, GetInterfaces() ) 382 382 { 383 383 result = pInterface->GetDynamicMethods().GetMethodPtr( pUserProc ); … … 446 446 } 447 447 448 BOOST_FOREACH( Member *pMember, dynamicMembers )448 foreach( Member *pMember, dynamicMembers ) 449 449 { 450 450 const Type& memberType = pMember->GetType(); … … 553 553 } 554 554 555 BOOST_FOREACH( Member *pMember, dynamicMembers )555 foreach( Member *pMember, dynamicMembers ) 556 556 { 557 557 // メンバサイズ … … 654 654 } 655 655 656 BOOST_FOREACH( Member *pMember, dynamicMembers )656 foreach( Member *pMember, dynamicMembers ) 657 657 { 658 658 int tempAlignment = pMember->GetType().GetSize(); … … 678 678 679 679 vtblIndex = 0; 680 BOOST_FOREACH( const CMethod *pMethod, GetDynamicMethods() ){680 foreach( const CMethod *pMethod, GetDynamicMethods() ){ 681 681 if( &pMethod->GetUserProc() == pUserProc ) 682 682 { … … 690 690 } 691 691 692 BOOST_FOREACH( const ::Interface *pInterface, interfaces )692 foreach( const ::Interface *pInterface, interfaces ) 693 693 { 694 694 vtblMasterListIndex++; 695 695 696 696 vtblIndex = 0; 697 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() ){697 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ){ 698 698 if( &pMethod->GetUserProc() == pUserProc ) 699 699 { … … 715 715 int result = 0; 716 716 717 BOOST_FOREACH( const ::Interface *pInterface, interfaces )717 foreach( const ::Interface *pInterface, interfaces ) 718 718 { 719 719 result++; … … 742 742 // 未実装(abstract)の仮想関数を持つ場合はtrueを返す 743 743 744 BOOST_FOREACH( const CMethod *pMethod, GetDynamicMethods() ){744 foreach( const CMethod *pMethod, GetDynamicMethods() ){ 745 745 if(pMethod->IsVirtual()){ 746 746 if(pMethod->IsAbstract()){ … … 751 751 752 752 // インターフェイスのvtbl 753 BOOST_FOREACH( const ::Interface *pInterface, interfaces )754 { 755 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() ){753 foreach( const ::Interface *pInterface, interfaces ) 754 { 755 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ){ 756 756 if(pMethod->IsVirtual()){ 757 757 if(pMethod->IsAbstract()){ … … 791 791 pClass = classes.front(); 792 792 793 BOOST_FOREACH( const CClass *pTempClass, classes )793 foreach( const CClass *pTempClass, classes ) 794 794 { 795 795 if( pClass->GetNamespaceScopes().size() < pTempClass->GetNamespaceScopes().size() ) … … 837 837 std::string result; 838 838 839 BOOST_FOREACH( const Member *pMember, dynamicMembers )839 foreach( const Member *pMember, dynamicMembers ) 840 840 { 841 841 if( result.size() ) … … 853 853 std::string result; 854 854 855 BOOST_FOREACH( const Member *pMember, dynamicMembers )855 foreach( const Member *pMember, dynamicMembers ) 856 856 { 857 857 if( result.size() ) … … 874 874 { 875 875 const CClass &thisClass = *this; 876 BOOST_FOREACH( const Member *pMember, thisClass.GetDynamicMembers() )876 foreach( const Member *pMember, thisClass.GetDynamicMembers() ) 877 877 { 878 878 if( pMember->GetType().IsObject() || pMember->GetType().IsPointer() ) … … 935 935 936 936 // 実装するインターフェイス 937 BOOST_FOREACH( ::Interface *pInterface, interfaces )937 foreach( ::Interface *pInterface, interfaces ) 938 938 { 939 939 pInterface->Resolve( resolver, resolveErrors ); … … 941 941 942 942 // 動的メンバ 943 BOOST_FOREACH( Member *pMember, dynamicMembers )943 foreach( Member *pMember, dynamicMembers ) 944 944 { 945 945 pMember->Resolve( resolver, resolveErrors ); … … 947 947 948 948 // 静的メンバ 949 BOOST_FOREACH( Member *pMember, staticMembers )949 foreach( Member *pMember, staticMembers ) 950 950 { 951 951 pMember->Resolve( resolver, resolveErrors ); … … 953 953 954 954 // 動的メソッド 955 BOOST_FOREACH( CMethod *pMethod, GetDynamicMethods() )955 foreach( CMethod *pMethod, GetDynamicMethods() ) 956 956 { 957 957 pMethod->Resolve( resolver, resolveErrors ); … … 959 959 960 960 // 静的メソッド 961 BOOST_FOREACH( CMethod *pMethod, staticMethods )961 foreach( CMethod *pMethod, staticMethods ) 962 962 { 963 963 pMethod->Resolve( resolver, resolveErrors ); … … 965 965 966 966 // テンプレート展開後のクラス 967 BOOST_FOREACH( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, expandedTemplateClasses )967 foreach( ActiveBasic::Common::Lexical::ExpandedTemplateClass *pExpandedTemplateClass, expandedTemplateClasses ) 968 968 { 969 969 pExpandedTemplateClass->Resolve( resolver, resolveErrors ); -
trunk/ab5.0/abdev/ab_common/src/Lexical/DataTable.cpp
r747 r750 59 59 void DataTable::ResetDataSectionBaseOffset( long dataSectionBaseOffset ) 60 60 { 61 BOOST_FOREACH( const Schedule &schedule, schedules )61 foreach( const Schedule &schedule, schedules ) 62 62 { 63 63 if( schedule.GetType() == Schedule::DataTable ) -
trunk/ab5.0/abdev/ab_common/src/Lexical/Delegate.cpp
r640 r750 23 23 Procedure::Resolve( resolver, resolveErrors ); 24 24 25 BOOST_FOREACH( Parameter *pParameter, dynamicParams )25 foreach( Parameter *pParameter, dynamicParams ) 26 26 { 27 27 pParameter->Resolve( resolver, resolveErrors ); -
trunk/ab5.0/abdev/ab_common/src/Lexical/Interface.cpp
r640 r750 8 8 { 9 9 //メソッドをコピー 10 BOOST_FOREACH( const CMethod *pBaseMethod, pInterfaceClass->GetDynamicMethods() )10 foreach( const CMethod *pBaseMethod, pInterfaceClass->GetDynamicMethods() ) 11 11 { 12 12 CMethod *pMethod = new DynamicMethod( *pBaseMethod ); … … 57 57 { 58 58 std::string actualGenericTypesName; 59 BOOST_FOREACH( const Type &typeParameter, actualTypeParameters )59 foreach( const Type &typeParameter, actualTypeParameters ) 60 60 { 61 61 if( actualGenericTypesName.size() ) … … 74 74 { 75 75 // 動的メソッド 76 BOOST_FOREACH( CMethod *pMethod, GetDynamicMethods() )76 foreach( CMethod *pMethod, GetDynamicMethods() ) 77 77 { 78 78 pMethod->Resolve( resolver, resolveErrors ); -
trunk/ab5.0/abdev/ab_common/src/Lexical/Meta.cpp
r640 r750 99 99 // グローバル変数 100 100 long initAreaBaseOffset = this->globalVars.initAreaBuffer.GetSize(); 101 BOOST_FOREACH( Variable *pVar, meta.globalVars )101 foreach( Variable *pVar, meta.globalVars ) 102 102 { 103 103 if( pVar->IsExternal() ) … … 186 186 187 187 // 関数ポインタ 188 BOOST_FOREACH( ProcPointer *pProcPointer, meta.procPointers )188 foreach( ProcPointer *pProcPointer, meta.procPointers ) 189 189 { 190 190 if( pProcPointer->IsExternal() ) … … 283 283 284 284 // グローバル変数 285 BOOST_FOREACH( Variable *pVar, globalVars )285 foreach( Variable *pVar, globalVars ) 286 286 { 287 287 pVar->Resolve( resolver, resolveErrors ); … … 319 319 320 320 // 関数ポインタ 321 BOOST_FOREACH( ProcPointer *pProcPointer, procPointers )321 foreach( ProcPointer *pProcPointer, procPointers ) 322 322 { 323 323 pProcPointer->Resolve( resolver, resolveErrors ); -
trunk/ab5.0/abdev/ab_common/src/Lexical/Method.cpp
r640 r750 92 92 Methods::Methods( const Methods &methods ) 93 93 { 94 BOOST_FOREACH( CMethod *pMethod, methods )94 foreach( CMethod *pMethod, methods ) 95 95 { 96 96 this->push_back( new DynamicMethod( dynamic_cast<DynamicMethod &>(*pMethod) ) ); … … 101 101 { 102 102 Methods &methods = *this; 103 BOOST_FOREACH( CMethod *pMethod, methods )103 foreach( CMethod *pMethod, methods ) 104 104 { 105 105 delete pMethod; … … 122 122 //メソッドのオーバーライド 123 123 Methods &methods = *this; 124 BOOST_FOREACH( CMethod *pMethod, methods )124 foreach( CMethod *pMethod, methods ) 125 125 { 126 126 if( !pMethod->IsNotUse() && pMethod->GetUserProc().IsEqualForOverride( actualTypeParametersForThisMethods, pUserProc ) ) … … 145 145 { 146 146 const Methods &methods = *this; 147 BOOST_FOREACH( const CMethod *pMethod, methods ){147 foreach( const CMethod *pMethod, methods ){ 148 148 if( pMethod->GetUserProc().GetName() == name ) return true; 149 149 } … … 181 181 int count = 0; 182 182 const Methods &methods = *this; 183 BOOST_FOREACH( const CMethod *pMethod, methods )183 foreach( const CMethod *pMethod, methods ) 184 184 { 185 185 if( pMethod->IsVirtual() ) -
trunk/ab5.0/abdev/ab_common/src/Lexical/NamespaceSupporter.cpp
r736 r750 47 47 48 48 // Importsされている名前空間とのマッチングを試みる 49 BOOST_FOREACH( const NamespaceScopes &importedNamespaceScopes, GetImportedNamespaces() )49 foreach( const NamespaceScopes &importedNamespaceScopes, GetImportedNamespaces() ) 50 50 { 51 51 if( base.IsEqual( importedNamespaceScopes + entry ) ) -
trunk/ab5.0/abdev/ab_common/src/Lexical/NativeCode.cpp
r645 r750 84 84 85 85 // スケジュールを追加 86 BOOST_FOREACH( const Schedule &schedule, nativeCode.schedules )86 foreach( const Schedule &schedule, nativeCode.schedules ) 87 87 { 88 88 this->schedules.push_back( … … 96 96 97 97 // ソースコード行番号とネイティブコード位置の対応情報を追加 98 BOOST_FOREACH( const SourceLine &sourceLine, nativeCode.sourceLines )98 foreach( const SourceLine &sourceLine, nativeCode.sourceLines ) 99 99 { 100 100 this->sourceLines.push_back( … … 191 191 void NativeCode::ResetDataSectionBaseOffset( long dataSectionBaseOffset ) 192 192 { 193 BOOST_FOREACH( const Schedule &schedule, schedules )193 foreach( const Schedule &schedule, schedules ) 194 194 { 195 195 if( schedule.GetType() == Schedule::DataTable ) -
trunk/ab5.0/abdev/ab_common/src/Lexical/ObjectModule.cpp
r640 r750 11 11 #include <sstream> 12 12 13 #define WIN32_LEAN_AND_MEAN 13 14 #include <windows.h> 14 15 #include <stdio.h> 15 16 #include <string.h> 16 17 #include <math.h> 17 #include <commctrl.h>18 18 #include <time.h> 19 19 #include <limits.h> 20 20 #include <shlobj.h> 21 #include <process.h>22 #include <fcntl.h>23 #include <io.h>24 #include <shlwapi.h>25 21 #include <tchar.h> 26 #include <stdarg.h>27 22 28 23 //boost libraries … … 52 47 #include <boost/serialization/export.hpp> 53 48 49 #define foreach(v, c) for each (v in c) 50 54 51 #include <jenga/include/jenga.h> 55 52 #include <abdev/ab_common/include/ab_common.h> … … 99 96 100 97 // リレーションテーブルを構築 101 BOOST_FOREACH( const std::string &oldRelationalObjectModuleName, oldRelationalObjectModuleNames )98 foreach( const std::string &oldRelationalObjectModuleName, oldRelationalObjectModuleNames ) 102 99 { 103 100 bool isMatch = false; … … 141 138 isSuccessful = true; 142 139 } 143 catch( boost::archive::archive_exception e )140 catch( boost::archive::archive_exception& e ) 144 141 { 145 142 MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK ); … … 174 171 isSuccessful = true; 175 172 } 176 catch( boost::archive::archive_exception e )173 catch( boost::archive::archive_exception& e ) 177 174 { 178 175 MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK ); … … 209 206 isSuccessful = true; 210 207 } 211 catch( boost::archive::archive_exception e )208 catch( boost::archive::archive_exception& e ) 212 209 { 213 210 MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK ); … … 245 242 isSuccessful = true; 246 243 } 247 catch( boost::archive::archive_exception e )244 catch( boost::archive::archive_exception &e ) 248 245 { 249 246 MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK ); -
trunk/ab5.0/abdev/ab_common/src/Lexical/Procedure.cpp
r641 r750 14 14 bool Procedure::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors ) 15 15 { 16 BOOST_FOREACH( Parameter *pParameter, params )16 foreach( Parameter *pParameter, params ) 17 17 { 18 18 pParameter->Resolve( resolver, resolveErrors ); … … 82 82 UserProc::~UserProc() 83 83 { 84 BOOST_FOREACH( Parameter *pParam, realParams ){84 foreach( Parameter *pParam, realParams ){ 85 85 delete pParam; 86 86 } … … 219 219 } 220 220 221 BOOST_FOREACH( Parameter *pParameter, realParams )221 foreach( Parameter *pParameter, realParams ) 222 222 { 223 223 pParameter->Resolve( resolver, resolveErrors ); 224 224 } 225 225 226 BOOST_FOREACH( Variable *pLocalVar, localVars )226 foreach( Variable *pLocalVar, localVars ) 227 227 { 228 228 pLocalVar->Resolve( resolver, resolveErrors ); … … 270 270 { 271 271 ProcPointers &procPointers = *this; 272 BOOST_FOREACH( ProcPointer *pProcPointer, procPointers ){272 foreach( ProcPointer *pProcPointer, procPointers ){ 273 273 delete pProcPointer; 274 274 } -
trunk/ab5.0/abdev/ab_common/src/Lexical/Type.cpp
r640 r750 524 524 { 525 525 std::string actualGenericTypesName; 526 BOOST_FOREACH( const GenericType &actualGenericType, actualGenericTypes )526 foreach( const GenericType &actualGenericType, actualGenericTypes ) 527 527 { 528 528 if( actualGenericTypesName.size() ) -
trunk/ab5.0/abdev/ab_common/src/Lexical/TypeDef.cpp
r640 r750 26 26 { 27 27 const TypeDefCollection &typeDefs = *this; 28 BOOST_FOREACH( const TypeDef &typeDef, typeDefs )28 foreach( const TypeDef &typeDef, typeDefs ) 29 29 { 30 30 if( typeDef.IsEqualSymbol( symbol ) ) -
trunk/ab5.0/abdev/ab_common/stdafx.h
r701 r750 6 6 #include <fstream> 7 7 #include <iostream> 8 #include <algorithm> 8 9 9 10 #include <windows.h> … … 11 12 #include <string.h> 12 13 #include <math.h> 13 #include <commctrl.h>14 14 #include <time.h> 15 15 #include <limits.h> 16 16 #include <shlobj.h> 17 #include <process.h>18 #include <fcntl.h>19 #include <io.h>20 17 21 18 //boost libraries … … 28 25 29 26 #include "include/ab_common.h" 30 -
trunk/ab5.0/abdev/compiler_x86/Compile_Object.cpp
r728 r750 111 111 { 112 112 std::string tempMessage; 113 BOOST_FOREACH( const CMethod *pMethod, pClass->GetDynamicMethods() ){113 foreach( const CMethod *pMethod, pClass->GetDynamicMethods() ){ 114 114 if(pMethod->IsVirtual()){ 115 115 if(pMethod->IsAbstract()){ … … 124 124 125 125 // インターフェイスのvtbl 126 BOOST_FOREACH( const ::Interface *pInterface, pClass->GetInterfaces() )126 foreach( const ::Interface *pInterface, pClass->GetInterfaces() ) 127 127 { 128 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() ){128 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ){ 129 129 if(pMethod->IsVirtual()){ 130 130 if(pMethod->IsAbstract()){ … … 261 261 262 262 // 仮想関数になるメソッドに使用チェックをつける 263 BOOST_FOREACH( const CMethod *pMethod, pClass->GetDynamicMethods() )263 foreach( const CMethod *pMethod, pClass->GetDynamicMethods() ) 264 264 { 265 265 if( pMethod->IsVirtual() ) … … 268 268 } 269 269 } 270 BOOST_FOREACH( const ::Interface *pInterface, pClass->GetInterfaces() )270 foreach( const ::Interface *pInterface, pClass->GetInterfaces() ) 271 271 { 272 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() )272 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ) 273 273 { 274 274 if( pMethod->IsVirtual() ) -
trunk/ab5.0/abdev/compiler_x86/Compile_ProcOp.cpp
r728 r750 56 56 //静的ローカルオブジェクトのコンストラクタ呼び出し 57 57 58 BOOST_FOREACH( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){58 foreach( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 59 59 if(memicmp(pVar->GetName().c_str(),"Static%",7)==0){ 60 60 //コンストラクタ呼び出し … … 225 225 226 226 //Goto未知ラベルスケジュールが存在したらエラーにする 227 BOOST_FOREACH( const GotoLabelSchedule *pGotoLabelSchedule, compiler.codeGenerator.gotoLabelSchedules )227 foreach( const GotoLabelSchedule *pGotoLabelSchedule, compiler.codeGenerator.gotoLabelSchedules ) 228 228 { 229 229 if(pGotoLabelSchedule->GetName().size()>0){ … … 699 699 700 700 //ローカル変数アドレススケジュール 701 BOOST_FOREACH( const PertialSchedule *pPertialSchedule, compiler.codeGenerator.localVarPertialSchedules )701 foreach( const PertialSchedule *pPertialSchedule, compiler.codeGenerator.localVarPertialSchedules ) 702 702 { 703 703 compiler.codeGenerator.opfix_offset( pPertialSchedule, AllLocalVarSize ); 704 704 } 705 705 compiler.codeGenerator.localVarPertialSchedules.clear(); 706 BOOST_FOREACH( Variable *pVar, pUserProc->GetLocalVars() ){706 foreach( Variable *pVar, pUserProc->GetLocalVars() ){ 707 707 //後にデバッグで利用する 708 708 pVar->SetOffsetAddress( AllLocalVarSize - pVar->GetOffsetAddress() ); -
trunk/ab5.0/abdev/compiler_x86/Compile_Statement.cpp
r720 r750 289 289 int GetLabelAddress(char *LabelName,int LineNum){ 290 290 if(LabelName){ 291 BOOST_FOREACH( const GotoLabel &label, compiler.codeGenerator.gotoLabels )291 foreach( const GotoLabel &label, compiler.codeGenerator.gotoLabels ) 292 292 { 293 293 if( label.name.size() > 0 ) … … 301 301 } 302 302 else{ 303 BOOST_FOREACH( const GotoLabel &label, compiler.codeGenerator.gotoLabels )303 foreach( const GotoLabel &label, compiler.codeGenerator.gotoLabels ) 304 304 { 305 305 if( label.name.size() == 0 ) -
trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
r745 r750 792 792 793 793 int i = 0; 794 BOOST_FOREACH( Member *pMember, objClass.GetDynamicMembers() ){794 foreach( Member *pMember, objClass.GetDynamicMembers() ){ 795 795 if(InitBuf[i]=='\0'){ 796 796 compiler.errorMessenger.Output(41,0,cp); … … 955 955 956 956 int i = 0; 957 BOOST_FOREACH( Member *pMember, objClass.GetDynamicMembers() ){957 foreach( Member *pMember, objClass.GetDynamicMembers() ){ 958 958 if(InitBuf[i]=='\0'){ 959 959 compiler.errorMessenger.Output(41,0,cp); … … 1333 1333 } 1334 1334 1335 BOOST_FOREACH( const Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){1335 foreach( const Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 1336 1336 if( pVar->GetType().IsObject() || pVar->GetType().IsPointer() || pVar->GetType().IsStruct() ){ 1337 1337 // オブジェクトまたはポインタだったとき -
trunk/ab5.0/abdev/compiler_x86/MakePeHdr.cpp
r749 r750 126 126 ActiveBasic::Common::Lexical::ResolveErrors resolveErrors; 127 127 compiler.GetObjectModule().Resolve( resolveErrors ); 128 BOOST_FOREACH( const ResolveError &resolveError, resolveErrors )128 foreach( const ResolveError &resolveError, resolveErrors ) 129 129 { 130 130 compiler.errorMessenger.Output( ErrorInfo( 13, resolveError.GetTargetItemName(), -1 ) ); … … 551 551 // 使用するDLL関数のチェック 552 552 //////////////////////////////// 553 BOOST_FOREACH( const Schedule &schedule, compiler.linker.GetNativeCode().GetSchedules() )553 foreach( const Schedule &schedule, compiler.linker.GetNativeCode().GetSchedules() ) 554 554 { 555 555 if( schedule.GetType() == Schedule::DllProc ) … … 834 834 //グローバル変数情報を扱う構造体も初期バッファの有無による配置を行う 835 835 //(デバッグ情報で利用される) 836 BOOST_FOREACH( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){836 foreach( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 837 837 if(pVar->GetOffsetAddress()&0x80000000){ 838 838 pVar->SetOffsetAddress( -
trunk/ab5.0/abdev/compiler_x86/stdafx.h
r686 r750 10 10 #include <streambuf> 11 11 #include <sstream> 12 #include <algorithm> 12 13 13 14 #include <windows.h> … … 19 20 #include <limits.h> 20 21 #include <shlobj.h> 21 #include <process.h>22 #include <fcntl.h>23 #include <io.h>24 22 #include <shlwapi.h> 25 23 #include <tchar.h> … … 58 56 #include <DataTableGenerator.h> 59 57 #include <BreakPoint.h> 60 61 #define lstrlenA strlen62 #define lstrcmpA strcmp63 #define lstrcpyA strcpy64 #define lstrcmpiA _stricmp
Note:
See TracChangeset
for help on using the changeset viewer.