Bug Fixes On Line Commands

This commit is contained in:
Andi Jahja
2000-07-31 23:48:23 +00:00
parent e09d364512
commit 54bb356dc8
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2000-08-01 06:30 UTC+0700 Jose Lalin <dezac@corevia.com>
* source/compiler/hbgenerr.c
Bug fixes as reported by Andi Jahja
2000-07-31 09:00 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/simplex.c
* source/macro/macro.slx

View File

@@ -129,7 +129,8 @@ void hb_compGenError( char * szErrors[], char cPrefix, int iError, char * szErro
if( cPrefix != 'F' && hb_comp_bError )
return;
printf( "\r%s(%i) ", hb_comp_files.pLast->szFileName, iLine );
if( hb_comp_files.pLast && hb_comp_files.pLast->szFileName )
printf( "\r%s(%i) ", hb_comp_files.pLast->szFileName, iLine );
printf( "Error %c%04i ", cPrefix, iError );
printf( szErrors[ iError - 1 ], szError1, szError2 );