From: Gurusamy Sarathy Date: Tue, 15 Feb 2000 16:10:46 +0000 (+0000) Subject: fix incompatibility with bison generated parser (from X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cdfb297e497e6b3fa53d95a7caf146fe81f33555;p=p5sagit%2Fp5-mst-13.2.git fix incompatibility with bison generated parser (from Ignasi Roca ) p4raw-id: //depot/perl@5098 --- diff --git a/toke.c b/toke.c index 44b3023..da4314d 100644 --- a/toke.c +++ b/toke.c @@ -7141,7 +7141,12 @@ Perl_yyerror(pTHX_ char *s) } else if (yychar > 255) where = "next token ???"; +#ifdef USE_PURE_BISON +/* GNU Bison sets the value -2 */ + else if (yychar == -2) { +#else else if ((yychar & 127) == 127) { +#endif if (PL_lex_state == LEX_NORMAL || (PL_lex_state == LEX_KNOWNEXT && PL_lex_defer == LEX_NORMAL)) where = "at end of line";