bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/7] skel: better aliasing of identifiers


From: Akim Demaille
Subject: Re: [PATCH 3/7] skel: better aliasing of identifiers
Date: Sat, 12 Jan 2013 09:08:39 +0100

Le 11 janv. 2013 à 17:22, Théophile Ranquet <address@hidden> a écrit :

> +*** The epilogue is no longer affected by internal #defines
> +
> +  The glr.c skeleton uses defines such as #define yylval (yystackp->yyval) in
> +  generated code.  These weren't properly undefined before the inclusion of
> +  the user epilogue, so functions such as the following were butchered by the
> +  preprocessor expansion:
> +
> +    int yylex (yy::parser::semantic_type *yylval);

Just use YYSTYPE.

> +  This is has been fixed: yylval, ynerrs, yychar, and yylloc are now valid
                                    ^^^^^^^ typo
> +  identifiers for user-provided variables.
> +
> ** Renamed %define variables

Fine!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]