See ChangeLog entry 2000-10-10 16:30 UTC-0400 David G. Holm <dholm@jsd-llc.com>

This commit is contained in:
David G. Holm
2000-10-10 20:48:46 +00:00
parent 2dde217783
commit 82ea52b808
3 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,9 @@
2000-10-10 16:30 UTC-0400 David G. Holm <dholm@jsd-llc.com>
* 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

View File

@@ -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;

View File

@@ -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));