mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
Remove the last uses of mktemp and unlink/delete.
* src/files.c (fdefines, ftable): Removed. (defines_ostack, table_obstack): New. Adjust dependencies of the former into uses of the latter. * src/output.c (output_short_or_char_table, output_short_table): Convert to using obstacks. * src/reader.c (copy_comment2): Accept one FILE * and two obstacks. (output_token_defines, reader_output_yylsp): Use obstacks. * src/system.h (obstack_fgrow3): New.
This commit is contained in:
11
src/files.h
11
src/files.h
@@ -29,9 +29,6 @@
|
||||
|
||||
extern FILE *finput; /* read grammar specifications */
|
||||
extern FILE *foutput; /* optionally output messages describing the actions taken */
|
||||
extern FILE *fdefines; /* optionally output #define's for token numbers. */
|
||||
extern FILE *ftable; /* output the tables and the parser */
|
||||
/* and also contains all the %{ ... %} definitions. */
|
||||
extern FILE *fguard; /* if semantic parser, output yyguard, containing all the guard code */
|
||||
extern FILE *fparser; /* read the parser to copy into ftable */
|
||||
|
||||
@@ -49,6 +46,14 @@ 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;
|
||||
|
||||
/* optionally output #define's for token numbers. */
|
||||
extern struct obstack defines_obstack;
|
||||
|
||||
|
||||
extern char *infile;
|
||||
extern int lineno;
|
||||
extern char *outfile;
|
||||
|
||||
Reference in New Issue
Block a user