Changeset 313 in dev for trunk/abdev/BasicCompiler_Common/StrOperation.cpp
- Timestamp:
- Sep 2, 2007, 11:11:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/StrOperation.cpp
r279 r313 174 174 } 175 175 176 int GetCpFromLine(int LineNum){ 177 extern char *basbuf; 178 176 int GetSourceCodeIndexFromLine( const char *source, int LineNum ){ 179 177 int i,nCount=0; 180 178 for(i=0;;i++){ 181 if( basbuf[i]=='\n'){179 if(source[i]=='\n'){ 182 180 nCount++; 183 181 if(LineNum==nCount){ 184 182 for(i++;;i++){ 185 if(IsCommandDelimitation( basbuf[i])) break;183 if(IsCommandDelimitation(source[i])) break; 186 184 } 187 185 return i;
Note:
See TracChangeset
for help on using the changeset viewer.