Fixed function signature for yyerror to take a const char *.

This commit is contained in:
Ryan C. Gordon 2016-04-01 12:19:18 -04:00
parent 5aea1f7c4d
commit 3e59daa5e6
5 changed files with 5 additions and 5 deletions

View File

@ -156,7 +156,7 @@
#define YYERROR_VERBOSE 1
// if error occurs in parsing
void yyerror(char *str)
void yyerror(const char *str)
{
// just report the string
_pShell->ErrorF("%s", str);

View File

@ -18,7 +18,7 @@
#define YYERROR_VERBOSE 1
// if error occurs in parsing
void yyerror(char *str)
void yyerror(const char *str)
{
// just report the string
_pShell->ErrorF("%s", str);

View File

@ -12,7 +12,7 @@
#define yyparse yyparse_engine_base_parser
#define yyerror yyerror_engine_base_parser
extern void yyerror(char *s);
extern void yyerror(const char *s);
extern int yyparse(void);
typedef struct yy_buffer_state *YY_BUFFER_STATE;

View File

@ -2,7 +2,7 @@
// needed for parser and scanner
extern int engine_ska_yylex(void);
extern void engine_ska_yyerror(char *s);
extern void engine_ska_yyerror(const char *s);
extern int engine_ska_yyparse(void);
extern void engine_ska_yyrestart(FILE *f);

View File

@ -26,7 +26,7 @@ BOOL bOffsetAllreadySet = FALSE;
#define YYERROR_VERBOSE 0
// if error occurs in parsing
void yyerror(char *str)
void yyerror(const char *str)
{
//_pShell->ErrorF("%s", str);
_pShell->ErrorF("File '%s'\n %s (line %d)",SMCGetBufferName(), str, SMCGetBufferLineNumber());