diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-15 16:10:46 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-15 16:10:46 +0000 |
commit | cdfb297e497e6b3fa53d95a7caf146fe81f33555 (patch) | |
tree | 1be9a0c252afce5e8792b8bdc4870a7a0a804511 /toke.c | |
parent | d0650a05fe2c0c137c168267e07071f674fa64bd (diff) | |
download | perl-cdfb297e497e6b3fa53d95a7caf146fe81f33555.tar.gz |
fix incompatibility with bison generated parser (from
Ignasi Roca <ignasi.roca@fujitsu.siemens.es>)
p4raw-id: //depot/perl@5098
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"; |