]> git.saurik.com Git - bison.git/blame - src/files.h
Still making progress in separating Bison into (i) input, (ii)
[bison.git] / src / files.h
CommitLineData
f7d4d87a 1/* File names and variables for bison,
ea52d706 2 Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
f7d4d87a 3
a0f6b076 4 This file is part of Bison, the GNU Compiler Compiler.
f7d4d87a 5
a0f6b076
AD
6 Bison is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
f7d4d87a 10
a0f6b076
AD
11 Bison is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
f7d4d87a 15
a0f6b076
AD
16 You should have received a copy of the GNU General Public License
17 along with Bison; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
f7d4d87a 20
ea52d706
AD
21#ifndef FILES_H_
22# define FILES_H_
f7d4d87a 23
f7d4d87a
DM
24/* File name specified with -o for the output file, or 0 if no -o. */
25extern char *spec_outfile;
26
ea52d706
AD
27/* File name for the parser (i.e., the one above, or its default.) */
28extern char *parser_file_name;
29
ea5607fd 30/* For -a. */
78af9bbc 31extern const char *spec_name_prefix;
f7d4d87a
DM
32
33/* File name pfx specified with -b, or 0 if no -b. */
34extern char *spec_file_prefix;
35
342b8b6e
AD
36/* --verbose. */
37extern char *spec_verbose_file;
38
39/* File name specified for the output VCG graph. */
40extern char *spec_graph_file;
41
42/* File name specified with --defines. */
43extern char *spec_defines_file;
0dbb648e
AD
44
45/* Read grammar specifications. */
46extern FILE *finput;
47
342b8b6e 48
8c7ebe49
AD
49/* Output all the action code; precise form depends on which parser. */
50extern struct obstack action_obstack;
51
896fe5c1
AD
52/* optionally output #define's for token numbers. */
53extern struct obstack defines_obstack;
54
ea5607fd
AD
55/* If semantic parser, output a .h file that defines YYSTYPE... */
56extern struct obstack attrs_obstack;
57
58/* ... and output yyguard, containing all the guard code. */
59extern struct obstack guard_obstack;
60
ff4423cc
AD
61/* The verbose output. */
62extern struct obstack output_obstack;
63
f7d4d87a 64extern char *infile;
f7d4d87a 65extern char *attrsfile;
a0f6b076 66
8963a27b 67void open_files PARAMS((void));
342b8b6e 68void close_files PARAMS((void));
8963a27b 69
342b8b6e 70void compute_output_file_names PARAMS((void));
d8880f69 71void output_files PARAMS((void));
ff61dabd
AD
72
73FILE *xfopen PARAMS ((const char *name, const char *mode));
74int xfclose PARAMS ((FILE *ptr));
75
b0ce6046
AD
76const char *skeleton_find PARAMS ((const char *envvar,
77 const char *skeleton_name));
8c7ebe49 78#endif /* !FILES_H_ */