mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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>
|
||||
|
||||
Mid-rule actions are simply... ignored!
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
#define yydebug %%prefix##debug
|
||||
#define yynerrs %%prefix##nerrs
|
||||
|
||||
/* Copy the user declarations. */
|
||||
%%prologue
|
||||
|
||||
#ifndef YYSTYPE
|
||||
typedef %%stype yystype;
|
||||
# define YYSTYPE yystype
|
||||
@@ -79,9 +82,6 @@ typedef struct yyltype
|
||||
# define YYLTYPE %%ltype
|
||||
#endif
|
||||
|
||||
/* Copy the user declarations. */
|
||||
%%prologue
|
||||
|
||||
/* Line %%skeleton-line of %%skeleton. */
|
||||
#line %%line "%%parser-file-name"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user