See ChangeLog entry 2000-10-10 16:30 UTC-0400 David G. Holm <dholm@jsd-llc.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user