diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-04-22 22:11:22 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-04-22 22:11:22 +0000 |
| commit | 4ecea33a988c00caa98cacf934e61e361d94e8af (patch) | |
| tree | 7089d85dfa0daa5568799f671cfb9924f1012710 /test/btyacc/code_debug.i | |
| parent | e0ae66db632ac7c7773c8b85754bfc135f5bdbd5 (diff) | |
Diffstat (limited to 'test/btyacc/code_debug.i')
| -rw-r--r-- | test/btyacc/code_debug.i | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/btyacc/code_debug.i b/test/btyacc/code_debug.i new file mode 100644 index 000000000000..b8f2144e197f --- /dev/null +++ b/test/btyacc/code_debug.i @@ -0,0 +1,60 @@ +#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 + +/* 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(); + +extern int yydebug; +extern int yynerrs; + +extern int yyerrflag; +extern int yychar; +extern YYSTYPE yyval; +extern YYSTYPE yylval; +#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) +extern YYLTYPE yyloc; /* position returned by actions */ +extern YYLTYPE yylloc; /* position from the lexer */ +#endif |
