[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug with YYPARSE_PARAM
From: |
sampo |
Subject: |
Re: bug with YYPARSE_PARAM |
Date: |
Mon, 17 Sep 2001 23:15:29 GMT |
Fred Hansen writes:
> I am forwarding a bug report for Bison.
> Fred Hansen
Thanks. Another bug is that the documentation did not mention
this bug reporting address ;-)
--Sampo
> 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. */
>
> __________________________________________________________________
__________________________________________________________________
SymLABS DirectoryScript www.symlabs.com
e-nabling triggers and stored mobile=+351-918.731.007
your biz procedures for LDAP fax=+351-214.222.637