mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
* src/files.c (guard_obstack): New.
(open_files): Initialize it. (output_files): Dump it... * src/files.h: Export it. * src/reader.c (copy_guard): Use it.
This commit is contained in:
15
src/files.h
15
src/files.h
@@ -27,7 +27,7 @@
|
||||
/* File name specified with -o for the output file, or 0 if no -o. */
|
||||
extern char *spec_outfile;
|
||||
|
||||
/* For -a, from getargs.c */
|
||||
/* For -a. */
|
||||
extern char *spec_name_prefix;
|
||||
|
||||
/* File name pfx specified with -b, or 0 if no -b. */
|
||||
@@ -40,16 +40,10 @@ extern FILE *finput;
|
||||
/* Optionally output messages describing the actions taken. */
|
||||
extern FILE *foutput;
|
||||
|
||||
/* If semantic parser, output yyguard, containing all the guard code. */
|
||||
extern FILE *fguard;
|
||||
|
||||
|
||||
/* Output all the action code; precise form depends on which parser. */
|
||||
extern struct obstack action_obstack;
|
||||
|
||||
/* If semantic parser, output a .h file that defines YYSTYPE */
|
||||
extern struct obstack attrs_obstack;
|
||||
|
||||
/* Output the tables and the parser and also contains all the %{
|
||||
... %} definitions. */
|
||||
extern struct obstack table_obstack;
|
||||
@@ -57,10 +51,15 @@ extern struct obstack table_obstack;
|
||||
/* optionally output #define's for token numbers. */
|
||||
extern struct obstack defines_obstack;
|
||||
|
||||
/* If semantic parser, output a .h file that defines YYSTYPE... */
|
||||
extern struct obstack attrs_obstack;
|
||||
|
||||
/* ... and output yyguard, containing all the guard code. */
|
||||
extern struct obstack guard_obstack;
|
||||
|
||||
|
||||
extern char *infile;
|
||||
extern char *attrsfile;
|
||||
extern char *guardfile;
|
||||
|
||||
void open_files PARAMS((void));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user