diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0dd4709ca3..6996790b9d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -5,7 +5,9 @@ 2000-10-10 16:30 UTC-0400 David G. Holm * include/hberrors.h + * source/compiler/hbgenerr.c * source/pp/pplib.c + * source/util/hbpp/hbpp.c % Changed the two char * parameters for hb_compGenError() and hb_compGenWarning() to const char *. * source/pp/ppcore.c diff --git a/harbour/source/compiler/hbgenerr.c b/harbour/source/compiler/hbgenerr.c index c4f5a18e5e..83dca140ba 100644 --- a/harbour/source/compiler/hbgenerr.c +++ b/harbour/source/compiler/hbgenerr.c @@ -124,7 +124,7 @@ char * hb_comp_szWarnings[] = "4Suspecious return type: \'%s\' expected: \'%s\'" }; -void hb_compGenError( char * szErrors[], char cPrefix, int iError, char * szError1, char * szError2 ) +void hb_compGenError( char * szErrors[], char cPrefix, int iError, const char * szError1, const char * szError2 ) { int iLine = hb_comp_iLine - 1; @@ -146,7 +146,7 @@ void hb_compGenError( char * szErrors[], char cPrefix, int iError, char * szErro exit( EXIT_FAILURE ); } -void hb_compGenWarning( char * szWarnings[], char cPrefix, int iWarning, char * szWarning1, char * szWarning2) +void hb_compGenWarning( char * szWarnings[], char cPrefix, int iWarning, const char * szWarning1, const char * szWarning2) { char * szText = szWarnings[ iWarning - 1 ]; int iLine = hb_comp_iLine - 1; diff --git a/harbour/utils/hbpp/hbpp.c b/harbour/utils/hbpp/hbpp.c index 9dab173395..8d64912542 100644 --- a/harbour/utils/hbpp/hbpp.c +++ b/harbour/utils/hbpp/hbpp.c @@ -529,7 +529,7 @@ static void AddSearchPath( char * szPath, PATHNAMES * * pSearchList ) pPath->szPath = szPath; } -void hb_compGenError( char * _szErrors[], char cPrefix, int iError, char * szError1, char * szError2 ) +void hb_compGenError( char * _szErrors[], char cPrefix, int iError, const char * szError1, const char * szError2 ) { HB_TRACE(HB_TR_DEBUG, ("hb_compGenError(%p, %c, %d, %s, %s)", _szErrors, cPrefix, iError, szError1, szError2)); @@ -541,7 +541,7 @@ void hb_compGenError( char * _szErrors[], char cPrefix, int iError, char * szErr exit( EXIT_FAILURE ); } -void hb_compGenWarning( char* _szWarnings[], char cPrefix, int iWarning, char * szWarning1, char * szWarning2) +void hb_compGenWarning( char* _szWarnings[], char cPrefix, int iWarning, const char * szWarning1, const char * szWarning2) { HB_TRACE(HB_TR_DEBUG, ("hb_compGenWarning(%p, %c, %d, %s, %s)", _szWarnings, cPrefix, iWarning, szWarning1, szWarning2));