ソースを参照

the correct thing is to adjust the number of arguments to the yywrap define according to the number of actually passed ones

Ralf S. Engelschall 21 年 前
コミット
304c507f4b
1 ファイル変更10 行追加10 行削除
  1. 10 10
      flex/flex.patch

+ 10 - 10
flex/flex.patch

@@ -1,6 +1,6 @@
 Index: doc/flex.texi
 --- doc/flex.texi.orig	2003-03-27 19:02:59 +0100
-+++ doc/flex.texi	2004-10-31 19:42:39 +0100
++++ doc/flex.texi	2004-10-31 20:15:39 +0100
 @@ -3804,6 +3804,7 @@
  @example
  @verbatim
@@ -67,7 +67,7 @@ Index: doc/flex.texi
  
 Index: filter.c
 --- filter.c.orig	2003-03-25 17:39:08 +0100
-+++ filter.c	2004-10-31 19:42:39 +0100
++++ filter.c	2004-10-31 20:15:39 +0100
 @@ -158,10 +158,21 @@
  			int     r;
  
@@ -105,7 +105,7 @@ Index: filter.c
  }
 Index: flex.skl
 --- flex.skl.orig	2003-04-01 03:51:38 +0200
-+++ flex.skl	2004-10-31 19:43:36 +0100
++++ flex.skl	2004-10-31 20:15:39 +0100
 @@ -345,19 +345,19 @@
  %#        yyscan_t yyscanner;
  %#
@@ -219,7 +219,7 @@ Index: flex.skl
  #ifdef YY_DECL_IS_OURS
 Index: gen.c
 --- gen.c.orig	2003-03-30 21:58:44 +0200
-+++ gen.c	2004-10-31 19:42:39 +0100
++++ gen.c	2004-10-31 20:15:39 +0100
 @@ -1812,7 +1812,6 @@
  			if (yytext_is_array) {
  				if (!reentrant){
@@ -230,7 +230,7 @@ Index: gen.c
  			}
 Index: main.c
 --- main.c.orig	2003-04-01 03:51:38 +0200
-+++ main.c	2004-10-31 19:42:39 +0100
++++ main.c	2004-10-31 20:20:01 +0100
 @@ -199,6 +199,7 @@
  {
  #if ENABLE_NLS
@@ -352,7 +352,7 @@ Index: main.c
  
  	if (!do_yywrap) {
 -		outn ("\n#define yywrap(n) 1");
-+		outn ("\n#define yywrap() 1");
++		outn ("\n#define yywrap(M4_YY_CALL_ONLY_ARG) 1");
  		outn ("#define YY_SKIP_YYWRAP");
  	}
  
@@ -366,7 +366,7 @@ Index: main.c
  		else {
 Index: scan.c
 --- scan.c.orig	2003-04-01 18:33:17 +0200
-+++ scan.c	2004-10-31 19:43:56 +0100
++++ scan.c	2004-10-31 20:15:40 +0100
 @@ -1,5 +1,6 @@
 +#line 2 "scan.c"
  
@@ -431,7 +431,7 @@ Index: scan.c
  #ifdef YY_DECL_IS_OURS
 Index: scan.l
 --- scan.l.orig	2003-04-01 03:51:38 +0200
-+++ scan.l	2004-10-31 19:42:39 +0100
++++ scan.l	2004-10-31 20:15:39 +0100
 @@ -350,7 +350,7 @@
  	stack		ACTION_M4_IFDEF( "M4""_YY_STACK_USED", option_sense );
  	stdinit		do_stdinit = option_sense;
@@ -443,7 +443,7 @@ Index: scan.l
  	warn		nowarn = ! option_sense;
 Index: skel.c
 --- skel.c.orig	2003-04-01 18:33:08 +0200
-+++ skel.c	2004-10-31 19:42:39 +0100
++++ skel.c	2004-10-31 20:15:39 +0100
 @@ -404,19 +404,19 @@
    "%#        yyscan_t yyscanner;",
    "%#",
@@ -549,7 +549,7 @@ Index: skel.c
    "]])",
 Index: tables.c
 --- tables.c.orig	2002-11-27 15:43:24 +0100
-+++ tables.c	2004-10-31 19:42:39 +0100
++++ tables.c	2004-10-31 20:15:39 +0100
 @@ -86,7 +86,7 @@
  	th->th_magic = YYTBL_MAGIC;
  	th->th_hsize = 14 + strlen (version_str) + 1 + strlen (name) + 1;