mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
* src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
before their first uses. (YYBISON, YYPURE): Move to the top of the output.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2001-11-30 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
|
||||||
|
before their first uses.
|
||||||
|
(YYBISON, YYPURE): Move to the top of the output.
|
||||||
|
|
||||||
2001-11-30 Akim Demaille <akim@epita.fr>
|
2001-11-30 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* tests/reduce.at (Useless Nonterminals): Fix.
|
* tests/reduce.at (Useless Nonterminals): Fix.
|
||||||
|
|||||||
@@ -31,15 +31,18 @@
|
|||||||
It was written by Richard Stallman by simplifying the hairy parser
|
It was written by Richard Stallman by simplifying the hairy parser
|
||||||
used when %semantic_parser is specified. */
|
used when %semantic_parser is specified. */
|
||||||
|
|
||||||
|
#define YYBISON 1 /* Identify Bison output. */
|
||||||
|
#define YYPURE %%pure /* Identify pure parsers. */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* If name_prefix is specify substitute the variables and functions
|
/* If name_prefix is specify substitute the variables and functions
|
||||||
names. */
|
names. */
|
||||||
#define yyparse %%prefix##parse
|
#define yyparse %%prefix##parse
|
||||||
#define yylex %%prefix##lex
|
#define yylex %%prefix##lex
|
||||||
#define yyerror %%prefix##error
|
#define yyerror %%prefix##error
|
||||||
#define yylval %%prefix##lval
|
#define yylval %%prefix##lval
|
||||||
#define yychar %%prefix##char
|
#define yychar %%prefix##char
|
||||||
#define yydebug %%prefix##debug
|
#define yydebug %%prefix##debug
|
||||||
#define yynerrs %%prefix##nerrs
|
#define yynerrs %%prefix##nerrs
|
||||||
|
|
||||||
@@ -111,6 +114,24 @@
|
|||||||
# define YYSTACK_FREE(Ptr) free (Ptr)
|
# define YYSTACK_FREE(Ptr) free (Ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#line %%input-line "%%filename"
|
||||||
|
#ifndef YYSTYPE
|
||||||
|
typedef %%stype yystype;
|
||||||
|
# define YYSTYPE yystype
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef YYLTYPE
|
||||||
|
typedef struct yyltype
|
||||||
|
{
|
||||||
|
int first_line;
|
||||||
|
int first_column;
|
||||||
|
int last_line;
|
||||||
|
int last_column;
|
||||||
|
} yyltype;
|
||||||
|
# define YYLTYPE %%ltype
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#line %%line "%%skeleton"
|
||||||
/* A type that is properly aligned for any stack member. */
|
/* A type that is properly aligned for any stack member. */
|
||||||
union yyalloc
|
union yyalloc
|
||||||
{
|
{
|
||||||
@@ -153,30 +174,10 @@ do \
|
|||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
#define YYBISON 1 /* Identify Bison output. */
|
|
||||||
#define YYPURE %%pure /* Identify pure parsers. */
|
|
||||||
|
|
||||||
#ifndef YYDEBUG
|
#ifndef YYDEBUG
|
||||||
# define YYDEBUG %%debug
|
# define YYDEBUG %%debug
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#line %%input-line "%%filename"
|
|
||||||
#ifndef YYSTYPE
|
|
||||||
typedef %%stype yystype;
|
|
||||||
# define YYSTYPE yystype
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef YYLTYPE
|
|
||||||
typedef struct yyltype
|
|
||||||
{
|
|
||||||
int first_line;
|
|
||||||
int first_column;
|
|
||||||
int last_line;
|
|
||||||
int last_column;
|
|
||||||
} yyltype;
|
|
||||||
# define YYLTYPE %%ltype
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef YYERROR_VERBOSE
|
#ifdef YYERROR_VERBOSE
|
||||||
# undef YYERROR_VERBOSE
|
# undef YYERROR_VERBOSE
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user