Changeset 313 in dev for trunk/abdev/BasicCompiler_Common/BreakPoint.cpp
- Timestamp:
- Sep 2, 2007, 11:11:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/BreakPoint.cpp
r280 r313 48 48 int FileNum; 49 49 const IncludedFilesRelation *pIncludedFilesRelation = NULL; 50 const BasicSource *pNowSource = NULL; 50 51 BOOST_FOREACH( const BasicSource &source, compiler.GetObjectModule().GetSources() ) 51 52 { … … 54 55 for(FileNum=0;FileNum<pIncludedFilesRelation->GetFileCounts();FileNum++) 55 56 { 56 if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),lpszFileName)==0) break; 57 if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),lpszFileName)==0) 58 { 59 pNowSource = &source; 60 break; 61 } 57 62 } 58 63 if( FileNum == pIncludedFilesRelation->GetFileCounts() ) … … 100 105 101 106 loop: 102 int tempCp; 103 tempCp=GetCpFromLine(FileBaseLine+i2); 107 int tempCp = GetSourceCodeIndexFromLine( pNowSource->GetBuffer(), FileBaseLine+i2 ); 104 108 105 109 int i3;
Note:
See TracChangeset
for help on using the changeset viewer.