Change 29443 by [EMAIL PROTECTED] on 2006/12/03 22:08:57
add support for bison 2.3
Affected files ...
... //depot/perl/perly.c#86 edit
... //depot/perl/regen_perly.pl#10 edit
Differences ...
==== //depot/perl/perly.c#86 (text) ====
Index: perl/perly.c
--- perl/perly.c#85~29440~ 2006-12-03 07:52:59.000000000 -0800
+++ perl/perly.c 2006-12-03 14:08:57.000000000 -0800
@@ -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
==== //depot/perl/regen_perly.pl#10 (text) ====
Index: perl/regen_perly.pl
--- perl/regen_perly.pl#9~28593~ 2006-07-17 07:23:59.000000000 -0700
+++ perl/regen_perly.pl 2006-12-03 14:08:57.000000000 -0800
@@ -66,10 +66,10 @@
# 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 @@
\#line[^\n]+\.c"
|
\#line[^\n]+\.simple"
+ |
+ YY_SYMBOL_PRINT
)
@xms
or die "Can't extract actions from $tmpc_file\n";
End of Patch.