diff options
Diffstat (limited to 'test/btyacc/rename_debug.i')
-rw-r--r-- | test/btyacc/rename_debug.i | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/test/btyacc/rename_debug.i b/test/btyacc/rename_debug.i new file mode 100644 index 000000000000..ce4871a0e68f --- /dev/null +++ b/test/btyacc/rename_debug.i @@ -0,0 +1,71 @@ +#define YYPREFIX "yy" + +#define YYPURE 0 + +#line 2 "code_debug.y" + +#ifdef YYBISON +int yylex(void); +static void yyerror(const char *); +#endif + + +#if ! defined(YYSTYPE) && ! defined(YYSTYPE_IS_DECLARED) +/* Default: YYSTYPE is the semantic value type. */ +typedef int YYSTYPE; +# define YYSTYPE_IS_DECLARED 1 +#endif + +/* compatibility with bison */ +#ifdef YYPARSE_PARAM +/* compatibility with FreeBSD */ +# ifdef YYPARSE_PARAM_TYPE +# define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM) +# else +# define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM) +# endif +#else +# define YYPARSE_DECL() yyparse(void) +#endif + +/* Parameters sent to lex. */ +#ifdef YYLEX_PARAM +# define YYLEX_DECL() yylex(void *YYLEX_PARAM) +# define YYLEX yylex(YYLEX_PARAM) +#else +# define YYLEX_DECL() yylex(void) +# define YYLEX yylex() +#endif + +#if !(defined(yylex) || defined(YYSTATE)) +int YYLEX_DECL(); +#endif + +/* Parameters sent to yyerror. */ +#ifndef YYERROR_DECL +#define YYERROR_DECL() yyerror(const char *s) +#endif +#ifndef YYERROR_CALL +#define YYERROR_CALL(msg) yyerror(msg) +#endif + +extern int YYPARSE_DECL(); + +#ifndef YYDEBUG +#define YYDEBUG 1 +#endif + +#if YYDEBUG +extern int yydebug; +#endif + +extern int yyerrflag; +extern int yychar; +extern YYSTYPE yyval; +extern YYSTYPE yylval; +extern int yynerrs; + +#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) +extern YYLTYPE yyloc; /* position returned by actions */ +extern YYLTYPE yylloc; /* position from the lexer */ +#endif |