* 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:
Akim Demaille
2000-12-20 10:29:43 +00:00
parent 27110317b8
commit ea5607fd01
6 changed files with 41 additions and 41 deletions

View File

@@ -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));