2011-10-20 23:06 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/hbmain.c
! take starting line number from PP to eliminate possible
synchronization problem
* harbour/src/compiler/hbcmplib.c
! minor fix in meta filename detecting
This commit is contained in:
@@ -16,6 +16,14 @@
|
||||
The license applies to all entries newer than 2009-04-28.
|
||||
*/
|
||||
|
||||
2011-10-20 23:06 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/compiler/hbmain.c
|
||||
! take starting line number from PP to eliminate possible
|
||||
synchronization problem
|
||||
|
||||
* harbour/src/compiler/hbcmplib.c
|
||||
! minor fix in meta filename detecting
|
||||
|
||||
2011-10-20 22:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/include/hbpp.h
|
||||
* harbour/include/hbcomp.h
|
||||
|
||||
@@ -67,7 +67,7 @@ static void s_pp_msg( void * cargo, int iErrorFmt, int iLine,
|
||||
PHB_ITEM pError;
|
||||
|
||||
hb_snprintf( szMsgBuf, sizeof( szMsgBuf ), szText, szPar1, szPar2 );
|
||||
if( !szModule || *szModule == 0 || strcmp( szModule, "{SOURCE}" ) == 0 )
|
||||
if( !szModule || *szModule == 0 || strcmp( szModule, "{SOURCE}.prg" ) == 0 )
|
||||
hb_snprintf( szLine, sizeof( szLine ),
|
||||
"line:%i", iLine );
|
||||
else
|
||||
|
||||
@@ -4170,7 +4170,7 @@ static int hb_compCompile( HB_COMP_DECL, const char * szPrg, const char * szBuff
|
||||
#endif
|
||||
HB_COMP_PARAM->iModulesCount = 1;
|
||||
|
||||
HB_COMP_PARAM->currLine = 1;
|
||||
HB_COMP_PARAM->currLine = hb_pp_line( HB_COMP_PARAM->pLex->pPP ) + 1;
|
||||
HB_COMP_PARAM->currModule = hb_compIdentifierNew(
|
||||
HB_COMP_PARAM, szFileName, HB_IDENT_COPY );
|
||||
if( HB_COMP_PARAM->szFile == NULL )
|
||||
|
||||
Reference in New Issue
Block a user