Ignore:
Timestamp:
Aug 5, 2007, 3:47:49 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r259 r263  
    569569
    570570    //行番号情報
    571     extern int MaxLineInfoNum;
    572     extern LINEINFO *pLineInfo;
     571    extern SourceLines oldSourceLines;
    573572    for(i3=0;i3<(int)pobj_dti->iProcLevel+1;i3++){
    574         for(i2=0;i2<MaxLineInfoNum-1;i2++){
    575             if((ULONG_PTR)(pLineInfo[i2].TopObp+ImageBase+MemPos_CodeSection)<=pobj_dti->lplpObp[i3]&&
    576                 pobj_dti->lplpObp[i3]<=(ULONG_PTR)(pLineInfo[i2+1].TopObp+ImageBase+MemPos_CodeSection)) break;
    577         }
    578         if(i2==MaxLineInfoNum) pobj_dti->lpdwCp[i3]=-1;
    579         else pobj_dti->lpdwCp[i3]=pLineInfo[i2].TopCp;
     573        for(i2=0;i2<(int)oldSourceLines.size()-2;i2++){
     574            if((ULONG_PTR)(oldSourceLines[i2].GetNativeCodePos()+ImageBase+MemPos_CodeSection)<=pobj_dti->lplpObp[i3]&&
     575                pobj_dti->lplpObp[i3]<=(ULONG_PTR)(oldSourceLines[i2+1].GetNativeCodePos()+ImageBase+MemPos_CodeSection)) break;
     576        }
     577        if(i2==oldSourceLines.size()-1) pobj_dti->lpdwCp[i3]=-1;
     578        else pobj_dti->lpdwCp[i3]=oldSourceLines[i2].GetSourceCodePos();
    580579    }
    581580    for(i3=0;i3<(int)pobj_dti->iProcLevel+1;i3++){
Note: See TracChangeset for help on using the changeset viewer.