mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 18:23:03 +00:00
* src/bison.simple: Do not provide a default for YYSTYPE and
YYLTYPE before the user's prologue. Otherwise it's hardly... a default.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2001-12-29 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/bison.simple: Do not provide a default for YYSTYPE and
|
||||||
|
YYLTYPE before the user's prologue. Otherwise it's hardly... a
|
||||||
|
default.
|
||||||
|
|
||||||
|
|
||||||
2001-12-29 Akim Demaille <akim@epita.fr>
|
2001-12-29 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Mid-rule actions are simply... ignored!
|
Mid-rule actions are simply... ignored!
|
||||||
|
|||||||
@@ -63,6 +63,9 @@
|
|||||||
#define yydebug %%prefix##debug
|
#define yydebug %%prefix##debug
|
||||||
#define yynerrs %%prefix##nerrs
|
#define yynerrs %%prefix##nerrs
|
||||||
|
|
||||||
|
/* Copy the user declarations. */
|
||||||
|
%%prologue
|
||||||
|
|
||||||
#ifndef YYSTYPE
|
#ifndef YYSTYPE
|
||||||
typedef %%stype yystype;
|
typedef %%stype yystype;
|
||||||
# define YYSTYPE yystype
|
# define YYSTYPE yystype
|
||||||
@@ -79,9 +82,6 @@ typedef struct yyltype
|
|||||||
# define YYLTYPE %%ltype
|
# define YYLTYPE %%ltype
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Copy the user declarations. */
|
|
||||||
%%prologue
|
|
||||||
|
|
||||||
/* Line %%skeleton-line of %%skeleton. */
|
/* Line %%skeleton-line of %%skeleton. */
|
||||||
#line %%line "%%parser-file-name"
|
#line %%line "%%parser-file-name"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user