[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regression in 2.4 ??
From: |
Joel E. Denny |
Subject: |
Re: Regression in 2.4 ?? |
Date: |
Sun, 9 Nov 2008 15:08:02 -0500 (EST) |
On Sun, 9 Nov 2008, Nelson Ferreira wrote:
> I have a very very simple parser and in 2.3 I could define some additional
> functions using YYSTYPE just by including the generated header because it
> defined:
>
> #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
> typedef int YYSTYPE;
> # define yystype YYSTYPE /* obsolescent; will be withdrawn */
> # define YYSTYPE_IS_DECLARED 1
> # define YYSTYPE_IS_TRIVIAL 1
> #endif
>
>
> however, now in 2.4 this is what I get there:
>
> #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
>
> # define yystype YYSTYPE /* obsolescent; will be withdrawn */
> # define YYSTYPE_IS_DECLARED 1
> #endif
>
> This strikes me as a bug, specially because you actually define
> YYSTYPE_IS_DECLARED to 1 without defining YYSTYPE.
Please show us a complete grammar file that causes this behavior.
> I also tried defining YYSTYPE in the .y itself but it had absolutely no
> influence in the generated .y.
Please show us exactly what you did here too.
Thanks.