* 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:
Akim Demaille
2001-12-29 14:25:08 +00:00
parent 82c035a823
commit cce7171088
2 changed files with 10 additions and 3 deletions

View File

@@ -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!

View File

@@ -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"