mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Fixed function signature for yyerror to take a const char *.
This commit is contained in:
parent
5aea1f7c4d
commit
3e59daa5e6
|
@ -156,7 +156,7 @@
|
||||||
|
|
||||||
#define YYERROR_VERBOSE 1
|
#define YYERROR_VERBOSE 1
|
||||||
// if error occurs in parsing
|
// if error occurs in parsing
|
||||||
void yyerror(char *str)
|
void yyerror(const char *str)
|
||||||
{
|
{
|
||||||
// just report the string
|
// just report the string
|
||||||
_pShell->ErrorF("%s", str);
|
_pShell->ErrorF("%s", str);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#define YYERROR_VERBOSE 1
|
#define YYERROR_VERBOSE 1
|
||||||
// if error occurs in parsing
|
// if error occurs in parsing
|
||||||
void yyerror(char *str)
|
void yyerror(const char *str)
|
||||||
{
|
{
|
||||||
// just report the string
|
// just report the string
|
||||||
_pShell->ErrorF("%s", str);
|
_pShell->ErrorF("%s", str);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#define yyparse yyparse_engine_base_parser
|
#define yyparse yyparse_engine_base_parser
|
||||||
#define yyerror yyerror_engine_base_parser
|
#define yyerror yyerror_engine_base_parser
|
||||||
|
|
||||||
extern void yyerror(char *s);
|
extern void yyerror(const char *s);
|
||||||
extern int yyparse(void);
|
extern int yyparse(void);
|
||||||
|
|
||||||
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
// needed for parser and scanner
|
// needed for parser and scanner
|
||||||
extern int engine_ska_yylex(void);
|
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 int engine_ska_yyparse(void);
|
||||||
extern void engine_ska_yyrestart(FILE *f);
|
extern void engine_ska_yyrestart(FILE *f);
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ BOOL bOffsetAllreadySet = FALSE;
|
||||||
#define YYERROR_VERBOSE 0
|
#define YYERROR_VERBOSE 0
|
||||||
|
|
||||||
// if error occurs in parsing
|
// if error occurs in parsing
|
||||||
void yyerror(char *str)
|
void yyerror(const char *str)
|
||||||
{
|
{
|
||||||
//_pShell->ErrorF("%s", str);
|
//_pShell->ErrorF("%s", str);
|
||||||
_pShell->ErrorF("File '%s'\n %s (line %d)",SMCGetBufferName(), str, SMCGetBufferLineNumber());
|
_pShell->ErrorF("File '%s'\n %s (line %d)",SMCGetBufferName(), str, SMCGetBufferLineNumber());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user