xref: /freebsd/contrib/byacc/test/yacc/rename_debug.i (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 #define YYPREFIX "yy"
2 
3 #define YYPURE 0
4 
5 #line 2 "code_debug.y"
6 
7 #ifdef YYBISON
8 int yylex(void);
9 static void yyerror(const char *);
10 #endif
11 
12 
13 #if ! defined(YYSTYPE) && ! defined(YYSTYPE_IS_DECLARED)
14 /* Default: YYSTYPE is the semantic value type. */
15 typedef int YYSTYPE;
16 # define YYSTYPE_IS_DECLARED 1
17 #endif
18 
19 /* compatibility with bison */
20 #ifdef YYPARSE_PARAM
21 /* compatibility with FreeBSD */
22 # ifdef YYPARSE_PARAM_TYPE
23 #  define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
24 # else
25 #  define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)
26 # endif
27 #else
28 # define YYPARSE_DECL() yyparse(void)
29 #endif
30 
31 /* Parameters sent to lex. */
32 #ifdef YYLEX_PARAM
33 # define YYLEX_DECL() yylex(void *YYLEX_PARAM)
34 # define YYLEX yylex(YYLEX_PARAM)
35 #else
36 # define YYLEX_DECL() yylex(void)
37 # define YYLEX yylex()
38 #endif
39 
40 #if !(defined(yylex) || defined(YYSTATE))
41 int YYLEX_DECL();
42 #endif
43 
44 /* Parameters sent to yyerror. */
45 #ifndef YYERROR_DECL
46 #define YYERROR_DECL() yyerror(const char *s)
47 #endif
48 #ifndef YYERROR_CALL
49 #define YYERROR_CALL(msg) yyerror(msg)
50 #endif
51 
52 extern int YYPARSE_DECL();
53 
54 #ifndef YYDEBUG
55 #define YYDEBUG 1
56 #endif
57 
58 #if YYDEBUG
59 extern	int      yydebug;
60 #endif
61 
62 extern	int      yyerrflag;
63 extern	int      yychar;
64 extern	YYSTYPE  yyval;
65 extern	YYSTYPE  yylval;
66 extern	int      yynerrs;
67