Changeset 313 in dev for trunk/abdev/BasicCompiler_Common/Debug.cpp
- Timestamp:
- Sep 2, 2007, 11:11:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Debug.cpp
r288 r313 57 57 int FileNum; 58 58 const IncludedFilesRelation *pIncludedFilesRelation = NULL; 59 const BasicSource *pNowSource = NULL; 59 60 BOOST_FOREACH( const BasicSource &source, compiler.GetObjectModule().GetSources() ) 60 61 { … … 63 64 for(FileNum=0;FileNum<pIncludedFilesRelation->GetFileCounts();FileNum++) 64 65 { 65 if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),szFilePath)==0) break; 66 if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),szFilePath)==0) 67 { 68 pNowSource = &source; 69 break; 70 } 66 71 } 67 72 if( FileNum == pIncludedFilesRelation->GetFileCounts() ) … … 110 115 111 116 loop: 112 int tempCp; 113 tempCp=GetCpFromLine(FileBaseLine+i2); 117 int tempCp = GetSourceCodeIndexFromLine( pNowSource->GetBuffer(), FileBaseLine+i2 ); 114 118 115 119 int i3;
Note:
See TracChangeset
for help on using the changeset viewer.