]> git.saurik.com Git - bison.git/blob - src/files.h
* data/lalr1.cc (parser::token_number_type, parser::rhs_number_type)
[bison.git] / src / files.h
1 /* File names and variables for bison,
2 Copyright (C) 1984, 1989, 2000, 2001, 2002 Free Software Foundation, Inc.
3
4 This file is part of Bison, the GNU Compiler Compiler.
5
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.
10
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.
15
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. */
20
21 #ifndef FILES_H_
22 # define FILES_H_
23
24 # include "uniqstr.h"
25
26 /* File name specified with -o for the output file, or 0 if no -o. */
27 extern char *spec_outfile;
28
29 /* File name for the parser (i.e., the one above, or its default.) */
30 extern char *parser_file_name;
31
32 /* Symbol prefix specified with -p, or 0 if no -p. */
33 extern const char *spec_name_prefix;
34
35 /* File name prefix specified with -b, or 0 if no -b. */
36 extern char *spec_file_prefix;
37
38 /* --verbose. */
39 extern char *spec_verbose_file;
40
41 /* File name specified for the output VCG graph. */
42 extern char *spec_graph_file;
43
44 /* File name specified with --defines. */
45 extern char *spec_defines_file;
46
47 /* Read grammar specifications. */
48 extern FILE *finput;
49
50
51 /* If semantic parser, output a .h file that defines YYSTYPE... */
52 extern struct obstack pre_prologue_obstack;
53 extern struct obstack post_prologue_obstack;
54
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. */
58 extern uniqstr grammar_file;
59
60 /* The current file name. Might change with %include, or with #line. */
61 extern uniqstr current_file;
62
63 void compute_output_file_names (void);
64
65 FILE *xfopen (const char *name, const char *mode);
66 void xfclose (FILE *ptr);
67
68 /* Prefix used to generate output file names. */
69 extern char *short_base_name;
70
71 #endif /* !FILES_H_ */