From: Dave Mitchell <davem@fdisolutions.com> Date: Sun, 3 Dec 2006 22:08:57 +0000 (+0000) Subject: add support for bison 2.3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3797f23dc18fcbec8952adafb4dada635be35c43;p=p5sagit%2Fp5-mst-13.2.git add support for bison 2.3 p4raw-id: //depot/perl@29443 --- diff --git a/perly.c b/perly.c index 93f3cb9..50a998e 100644 --- a/perly.c +++ b/perly.c @@ -25,6 +25,7 @@ */ + /* allow stack size to grow effectively without limit */ #define YYMAXDEPTH 10000000 @@ -32,6 +33,10 @@ #define PERL_IN_PERLY_C #include "perl.h" +typedef unsigned char yytype_uint8; +typedef signed char yytype_int8; +typedef unsigned short int yytype_uint16; +typedef short int yytype_int16; typedef signed char yysigned_char; #ifdef DEBUGGING diff --git a/regen_perly.pl b/regen_perly.pl index f3b3f59..a046399 100644 --- a/regen_perly.pl +++ b/regen_perly.pl @@ -66,10 +66,10 @@ die "$0: must be run on an ASCII system\n" unless ord 'A' == 65; # the test below to allow that version too. DAPM Feb 04. my $version = `$bison -V`; -unless ($version =~ /\b(1\.875[a-z]?|2\.[01])\b/) { die <<EOF; } +unless ($version =~ /\b(1\.875[a-z]?|2\.[013])\b/) { die <<EOF; } You have the wrong version of bison in your path; currently 1.875 -2.0 or 2.1 is required. Try installing +2.0, 2.1 or 2.3 is required. Try installing http://ftp.gnu.org/gnu/bison/bison-2.1.tar.gz or similar. Your bison identifies itself as: @@ -165,6 +165,8 @@ sub extract { \#line[^\n]+\.c" | \#line[^\n]+\.simple" + | + YY_SYMBOL_PRINT ) @xms or die "Can't extract actions from $tmpc_file\n";