mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
make syntax errors a little easier to understand
This commit is contained in:
parent
c9fbb334f1
commit
05fb5fe08b
1 changed files with 5 additions and 0 deletions
|
@ -63,13 +63,18 @@ static __attribute__ ((unused)) const char rcsid[] =
|
|||
|
||||
#define YYDEBUG 1
|
||||
#define YYERROR_VERBOSE 1
|
||||
#undef YYERROR_VERBOSE
|
||||
|
||||
extern char *yytext;
|
||||
|
||||
static void
|
||||
yyerror (const char *s)
|
||||
{
|
||||
#ifdef YYERROR_VERBOSE
|
||||
error (0, "%s %s\n", yytext, s);
|
||||
#else
|
||||
error (0, "%s before %s", s, yytext);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue