]> git.saurik.com Git - bison.git/blame_incremental - src/files.h
Back out previous commit, which was unintended.
[bison.git] / src / files.h
... / ...
CommitLineData
1/* File names and variables for bison,
2
3 Copyright (C) 1984, 1989, 2000, 2001, 2002, 2006, 2007 Free Software
4 Foundation, Inc.
5
6 This file is part of Bison, the GNU Compiler Compiler.
7
8 Bison is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 Bison is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with Bison; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
22
23#ifndef FILES_H_
24# define FILES_H_
25
26# include "uniqstr.h"
27
28/* File name specified with -o for the output file, or 0 if no -o. */
29extern char const *spec_outfile;
30
31/* File name for the parser (i.e., the one above, or its default.) */
32extern char *parser_file_name;
33
34/* Symbol prefix specified with -p, or 0 if no -p. */
35extern const char *spec_name_prefix;
36
37/* File name prefix specified with -b, or 0 if no -b. */
38extern char const *spec_file_prefix;
39
40/* --verbose. */
41extern char *spec_verbose_file;
42
43/* File name specified for the output graph. */
44extern char *spec_graph_file;
45
46/* File name specified with --defines. */
47extern char *spec_defines_file;
48
49/* Directory prefix of output file names. */
50extern char *dir_prefix;
51
52/* The file name as given on the command line.
53 Not named "input_file" because Flex uses this name for an argument,
54 and therefore GCC warns about a name clash. */
55extern uniqstr grammar_file;
56
57/* The current file name. Might change with %include, or with #line. */
58extern uniqstr current_file;
59
60/* The computed base for output file names. */
61extern char *all_but_ext;
62
63void compute_output_file_names (void);
64void output_file_names_free (void);
65void output_file_name_check (char const *file_name);
66
67FILE *xfopen (const char *name, const char *mode);
68void xfclose (FILE *ptr);
69
70#endif /* !FILES_H_ */