summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perly.c5
-rw-r--r--regen_perly.pl6
2 files changed, 9 insertions, 2 deletions
diff --git a/perly.c b/perly.c
index 93f3cb9dce..50a998e146 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 f3b3f59ce3..a046399ab2 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";