Ignore:
Timestamp:
Sep 2, 2007, 11:11:40 PM (17 years ago)
Author:
dai_9181
Message:

ステップ実行時の不正終了を回避

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/StrOperation.cpp

    r279 r313  
    174174}
    175175
    176 int GetCpFromLine(int LineNum){
    177     extern char *basbuf;
    178 
     176int GetSourceCodeIndexFromLine( const char *source, int LineNum ){
    179177    int i,nCount=0;
    180178    for(i=0;;i++){
    181         if(basbuf[i]=='\n'){
     179        if(source[i]=='\n'){
    182180            nCount++;
    183181            if(LineNum==nCount){
    184182                for(i++;;i++){
    185                     if(IsCommandDelimitation(basbuf[i])) break;
     183                    if(IsCommandDelimitation(source[i])) break;
    186184                }
    187185                return i;
Note: See TracChangeset for help on using the changeset viewer.