[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug with YYPARSE_PARAM
From: |
Fred Hansen |
Subject: |
bug with YYPARSE_PARAM |
Date: |
Mon, 17 Sep 2001 13:47:16 -0400 |
I am forwarding a bug report for Bison.
Fred Hansen
From: address@hidden
To: address@hidden
Cc: address@hidden, address@hidden, address@hidden
Subject: bison.simple: number of args does not match if YYPARSE_PARAM
defined
Date: Sat, 21 Jul 2001 22:13:06 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <address@hidden>
* N.B: /apps/bison/bison-A2.6/share/bison.simple, line 153 has a bug
that
* causes it to ignore definition of YYPARSE_PARAM, thus causing
* it to report `number of arguments doesn't match prototype'.
diff -c bison.simple.orig bison.simple
*** bison.simple.orig Sat Jul 21 22:42:27 2001
--- bison.simple Sat Jul 21 22:43:44 2001
***************
*** 150,156 ****
--- 150,160 ----
/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
+ #ifdef YYPARSE_PARAM
+ int yyparse (void*);
+ #else
int yyparse (void);
+ #endif
#endif
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
__________________________________________________________________
- bug with YYPARSE_PARAM,
Fred Hansen <=