On Sun, 9 Nov 2008, Nelson Ferreira wrote:

> but I still am confused then about what this actually does:
>
> #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
>
> # define yystype YYSTYPE /* obsolescent; will be withdrawn */
> # define YYSTYPE_IS_DECLARED 1
> #endif

I can't think of any reason why it's needed in this case (that is, <...> 
is seen but there's no %union).  I'll leave it up to other developers to 
decide whether it can be removed for Bison 2.5.  Thanks for the report.

> I mean, is this not misleading other code that interfaces with yours?
> After all you are stating with #define YYSTYPE_IS_DECLARED 1 that YYSTYPE is
> available
> when you cannot actually say that.

YYSTYPE_IS_DECLARED is not documented anywhere and is thus for Bison's 
internal use.  Users should not depend on it, so I don't think this issue 
needs to be addressed in Bison 2.4.1.


_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to