Changeset 280 in dev for trunk/abdev/BasicCompiler_Common/Debug.cpp
- Timestamp:
- Aug 14, 2007, 8:37:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Debug.cpp
r279 r280 56 56 57 57 int FileNum; 58 for(FileNum=0;FileNum<compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileCounts();FileNum++){ 59 if(lstrcmpi(compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFilePathFromFileNumber(FileNum).c_str(),szFilePath)==0) break; 60 } 61 if( FileNum == compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileCounts() ) 58 const IncludedFilesRelation *pIncludedFilesRelation = NULL; 59 BOOST_FOREACH( const BasicSource &source, compiler.GetObjectModule().GetSources() ) 60 { 61 pIncludedFilesRelation = &source.GetIncludedFilesRelation(); 62 63 for(FileNum=0;FileNum<pIncludedFilesRelation->GetFileCounts();FileNum++) 64 { 65 if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),szFilePath)==0) break; 66 } 67 if( FileNum == pIncludedFilesRelation->GetFileCounts() ) 68 { 69 pIncludedFilesRelation = NULL; 70 } 71 else 72 { 73 break; 74 } 75 } 76 77 if( !pIncludedFilesRelation ) 62 78 { 63 79 return; … … 65 81 66 82 for(i=0;;i++){ 67 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == FileNum68 || compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == -1 )83 if( pIncludedFilesRelation->GetFileNumber( i ) == FileNum 84 || pIncludedFilesRelation->GetFileNumber( i ) == -1 ) 69 85 { 70 86 break; 71 87 } 72 88 } 73 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == -1 )89 if( pIncludedFilesRelation->GetFileNumber( i ) == -1 ) 74 90 { 75 91 return; … … 82 98 for(i2=0;;i++,i2++) 83 99 { 84 if( FileNum < compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) )100 if( FileNum < pIncludedFilesRelation->GetFileNumber( i ) ) 85 101 { 86 while( FileNum != compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) )102 while( FileNum != pIncludedFilesRelation->GetFileNumber( i ) ) 87 103 { 88 104 i++;
Note:
See TracChangeset
for help on using the changeset viewer.