]> git.saurik.com Git - bison.git/blame - src/files.h
Regenerate.
[bison.git] / src / files.h
CommitLineData
f7d4d87a 1/* File names and variables for bison,
b906441c 2 Copyright (C) 1984, 1989, 2000, 2001, 2002 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
0fb669f9
PE
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
f7d4d87a 20
ea52d706
AD
21#ifndef FILES_H_
22# define FILES_H_
f7d4d87a 23
651ec3d0 24# include "uniqstr.h"
95612cfa 25
f7d4d87a 26/* File name specified with -o for the output file, or 0 if no -o. */
2b81e969 27extern char const *spec_outfile;
f7d4d87a 28
ea52d706 29/* File name for the parser (i.e., the one above, or its default.) */
2b81e969 30extern char const *parser_file_name;
ea52d706 31
e41fdc93 32/* Symbol prefix specified with -p, or 0 if no -p. */
78af9bbc 33extern const char *spec_name_prefix;
f7d4d87a 34
e41fdc93 35/* File name prefix specified with -b, or 0 if no -b. */
2b81e969 36extern char const *spec_file_prefix;
f7d4d87a 37
342b8b6e 38/* --verbose. */
2b81e969 39extern char const *spec_verbose_file;
342b8b6e
AD
40
41/* File name specified for the output VCG graph. */
2b81e969 42extern char const *spec_graph_file;
342b8b6e
AD
43
44/* File name specified with --defines. */
2b81e969 45extern char const *spec_defines_file;
0dbb648e 46
2b81e969
AD
47/* Directory prefix of output file names. */
48extern char const *dir_prefix;
0dbb648e 49
342b8b6e 50
ea5607fd 51/* If semantic parser, output a .h file that defines YYSTYPE... */
0dd1580a
RA
52extern struct obstack pre_prologue_obstack;
53extern struct obstack post_prologue_obstack;
ea5607fd 54
95612cfa
AD
55/* The file name as given on the command line.
56 Not named "input_file" because Flex uses this name for an argument,
57 and therefore GCC warns about a name clash. */
651ec3d0 58extern uniqstr grammar_file;
95612cfa
AD
59
60/* The current file name. Might change with %include, or with #line. */
651ec3d0 61extern uniqstr current_file;
a0f6b076 62
d33cb3ae 63void compute_output_file_names (void);
ff61dabd 64
d33cb3ae 65FILE *xfopen (const char *name, const char *mode);
760d7aa8 66void xfclose (FILE *ptr);
ff61dabd 67
8c7ebe49 68#endif /* !FILES_H_ */