Changeset 750 in dev for trunk/ab5.0/abdev/compiler_x86
- Timestamp:
- Sep 24, 2008, 2:02:16 AM (16 years ago)
- Location:
- trunk/ab5.0/abdev/compiler_x86
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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.