Ignore:
Timestamp:
Aug 14, 2007, 3:22:02 AM (17 years ago)
Author:
dai_9181
Message:

sourceをObjectModuleに入れた

File:
1 edited

Legend:

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

    r206 r279  
    44
    55#include <Program.h>
    6 #include <Class.h>
     6#include <Compiler.h>
    77
    88#include "../BasicCompiler_Common/common.h"
     
    291291    extern ERRORINFO *pErrorInfo;
    292292    extern int ErrorNum;
    293     char temporary[1024],temp2[1024],temp3[32],FileName[MAX_PATH];
     293    char temporary[1024],temp2[1024],temp3[32];
    294294    BOOL bFirst;
    295295    int i2;
     
    329329    }
    330330    else{
    331         GetLineNum(pos,&pErrorInfo[ErrorNum].line,FileName);
    332 
    333         pErrorInfo[ErrorNum].FileName=(char *)HeapAlloc(hHeap,0,lstrlen(FileName)+1);
    334         lstrcpy(pErrorInfo[ErrorNum].FileName,FileName);
     331        std::string dummyStr;
     332        compiler.GetObjectModule().source.GetLineInfo( pos, pErrorInfo[ErrorNum].line, dummyStr );
     333
     334        pErrorInfo[ErrorNum].FileName=(char *)HeapAlloc(hHeap,0,lstrlen(dummyStr.c_str())+1);
     335        lstrcpy(pErrorInfo[ErrorNum].FileName,dummyStr.c_str());
    335336
    336337        _splitpath(pErrorInfo[ErrorNum].FileName,0,0,temp2,temp3);
Note: See TracChangeset for help on using the changeset viewer.