Changeset 279 in dev for trunk/abdev/BasicCompiler_Common/Debug.cpp
- Timestamp:
- Aug 14, 2007, 3:22:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Debug.cpp
r276 r279 55 55 ///////////////////////////////////////////////////////// 56 56 57 extern INCLUDEFILEINFO IncludeFileInfo;58 59 57 int FileNum; 60 for(FileNum=0;FileNum<IncludeFileInfo.FilesNum;FileNum++){ 61 if(lstrcmpi(IncludeFileInfo.ppFileNames[FileNum],szFilePath)==0) break; 62 } 63 if(FileNum==IncludeFileInfo.FilesNum) return; 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() ) 62 { 63 return; 64 } 64 65 65 66 for(i=0;;i++){ 66 if(IncludeFileInfo.LineOfFile[i]==FileNum|| 67 IncludeFileInfo.LineOfFile[i]==-1) break; 68 } 69 if(IncludeFileInfo.LineOfFile[i]==-1) return; 67 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == FileNum 68 || compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == -1 ) 69 { 70 break; 71 } 72 } 73 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == -1 ) 74 { 75 return; 76 } 70 77 71 78 int FileBaseLine; … … 73 80 74 81 int i2; 75 for(i2=0;;i++,i2++){ 76 if(FileNum<IncludeFileInfo.LineOfFile[i]){ 77 while(FileNum!=IncludeFileInfo.LineOfFile[i]) i++; 82 for(i2=0;;i++,i2++) 83 { 84 if( FileNum < compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) ) 85 { 86 while( FileNum != compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) ) 87 { 88 i++; 89 } 78 90 } 79 91
Note:
See TracChangeset
for help on using the changeset viewer.