Changeset 279 in dev for trunk/abdev/BasicCompiler_Common/error.cpp
- Timestamp:
- Aug 14, 2007, 3:22:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/error.cpp
r206 r279 4 4 5 5 #include <Program.h> 6 #include <C lass.h>6 #include <Compiler.h> 7 7 8 8 #include "../BasicCompiler_Common/common.h" … … 291 291 extern ERRORINFO *pErrorInfo; 292 292 extern int ErrorNum; 293 char temporary[1024],temp2[1024],temp3[32] ,FileName[MAX_PATH];293 char temporary[1024],temp2[1024],temp3[32]; 294 294 BOOL bFirst; 295 295 int i2; … … 329 329 } 330 330 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()); 335 336 336 337 _splitpath(pErrorInfo[ErrorNum].FileName,0,0,temp2,temp3);
Note:
See TracChangeset
for help on using the changeset viewer.