Changeset 768 in dev for trunk/ab5.0/abdev/compiler_x64
- Timestamp:
- Dec 30, 2008, 1:56:34 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/compiler_x64
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x64/Compile_Object.cpp
r729 r768 104 104 { 105 105 std::string tempMessage; 106 BOOST_FOREACH( const CMethod *pMethod, pClass->GetDynamicMethods() ){106 foreach( const CMethod *pMethod, pClass->GetDynamicMethods() ){ 107 107 if(pMethod->IsVirtual()){ 108 108 if(pMethod->IsAbstract()){ … … 117 117 118 118 // インターフェイスのvtbl 119 BOOST_FOREACH( const ::Interface *pInterface, pClass->GetInterfaces() )119 foreach( const ::Interface *pInterface, pClass->GetInterfaces() ) 120 120 { 121 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() ){121 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ){ 122 122 if(pMethod->IsVirtual()){ 123 123 if(pMethod->IsAbstract()){ … … 256 256 257 257 // 仮想関数になるメソッドに使用チェックをつける 258 BOOST_FOREACH( const CMethod *pMethod, pClass->GetDynamicMethods() )258 foreach( const CMethod *pMethod, pClass->GetDynamicMethods() ) 259 259 { 260 260 if( pMethod->IsVirtual() ) … … 263 263 } 264 264 } 265 BOOST_FOREACH( const ::Interface *pInterface, pClass->GetInterfaces() )265 foreach( const ::Interface *pInterface, pClass->GetInterfaces() ) 266 266 { 267 BOOST_FOREACH( const CMethod *pMethod, pInterface->GetDynamicMethods() )267 foreach( const CMethod *pMethod, pInterface->GetDynamicMethods() ) 268 268 { 269 269 if( pMethod->IsVirtual() ) -
trunk/ab5.0/abdev/compiler_x64/Compile_ProcOp.cpp
r729 r768 66 66 const PertialSchedule *pStackFramePertialSchedule = compiler.codeGenerator.op_sub_rsp( 0, true ); 67 67 68 BOOST_FOREACH( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 68 foreach( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 69 70 71 69 72 if(memicmp(pVar->GetName().c_str(),"Static%",7)==0){ 70 73 //コンストラクタ呼び出し … … 151 154 152 155 //Goto未知ラベルスケジュールが存在したらエラーにする 153 BOOST_FOREACH( const GotoLabelSchedule *pGotoLabelSchedule, compiler.codeGenerator.gotoLabelSchedules )156 foreach( const GotoLabelSchedule *pGotoLabelSchedule, compiler.codeGenerator.gotoLabelSchedules ) 154 157 { 155 158 if(pGotoLabelSchedule->GetName().size()>0){ … … 645 648 646 649 //ローカル変数アドレススケジュール 647 BOOST_FOREACH( const PertialSchedule *pPertialSchedule, compiler.codeGenerator.localVarPertialSchedules )650 foreach( const PertialSchedule *pPertialSchedule, compiler.codeGenerator.localVarPertialSchedules ) 648 651 { 649 652 compiler.codeGenerator.opfix_offset( pPertialSchedule, AllLocalVarSize + stackFrameSize ); 650 653 } 651 654 compiler.codeGenerator.localVarPertialSchedules.clear(); 652 BOOST_FOREACH( Variable *pVar, pUserProc->GetLocalVars() ){655 foreach( Variable *pVar, pUserProc->GetLocalVars() ){ 653 656 //後にデバッグで利用する 654 657 pVar->SetOffsetAddress( -
trunk/ab5.0/abdev/compiler_x64/Compile_Statement.cpp
r720 r768 248 248 int GetLabelAddress(char *LabelName,int LineNum){ 249 249 if(LabelName){ 250 BOOST_FOREACH( const GotoLabel &label, compiler.codeGenerator.gotoLabels )250 foreach( const GotoLabel &label, compiler.codeGenerator.gotoLabels ) 251 251 { 252 252 if( label.name.size() > 0 ) … … 260 260 } 261 261 else{ 262 BOOST_FOREACH( const GotoLabel &label, compiler.codeGenerator.gotoLabels )262 foreach( const GotoLabel &label, compiler.codeGenerator.gotoLabels ) 263 263 { 264 264 if( label.name.size() == 0 ) -
trunk/ab5.0/abdev/compiler_x64/Compile_Var.cpp
r746 r768 810 810 811 811 int i = 0; 812 BOOST_FOREACH( Member *pMember, objClass.GetDynamicMembers() ){812 foreach( Member *pMember, objClass.GetDynamicMembers() ){ 813 813 if(InitBuf[i]=='\0'){ 814 814 compiler.errorMessenger.Output(41,0,cp); … … 972 972 973 973 int i = 0; 974 BOOST_FOREACH( Member *pMember, objClass.GetDynamicMembers() ){974 foreach( Member *pMember, objClass.GetDynamicMembers() ){ 975 975 if(InitBuf[i]=='\0'){ 976 976 compiler.errorMessenger.Output(41,0,cp); … … 1337 1337 } 1338 1338 1339 BOOST_FOREACH( const Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){1339 foreach( const Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 1340 1340 if( pVar->GetType().IsObject() || pVar->GetType().IsPointer() || pVar->GetType().IsStruct() ){ 1341 1341 // オブジェクトまたはポインタだったとき -
trunk/ab5.0/abdev/compiler_x64/MakePeHdr.cpp
r749 r768 115 115 ActiveBasic::Common::Lexical::ResolveErrors resolveErrors; 116 116 compiler.GetObjectModule().Resolve( resolveErrors ); 117 BOOST_FOREACH( const ResolveError &resolveError, resolveErrors )117 foreach( const ResolveError &resolveError, resolveErrors ) 118 118 { 119 119 compiler.errorMessenger.Output( ErrorInfo( 13, resolveError.GetTargetItemName(), -1 ) ); … … 520 520 // 使用するDLL関数のチェック 521 521 //////////////////////////////// 522 BOOST_FOREACH( const Schedule &schedule, compiler.linker.GetNativeCode().GetSchedules() )522 foreach( const Schedule &schedule, compiler.linker.GetNativeCode().GetSchedules() ) 523 523 { 524 524 if( schedule.GetType() == Schedule::DllProc ) … … 831 831 //グローバル変数情報を扱う構造体も初期バッファの有無による配置を行う 832 832 //(デバッグ情報で利用される) 833 BOOST_FOREACH( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){833 foreach( Variable *pVar, compiler.GetObjectModule().meta.GetGlobalVars() ){ 834 834 if(pVar->GetOffsetAddress()&0x80000000){ 835 835 pVar->SetOffsetAddress(
Note:
See TracChangeset
for help on using the changeset viewer.