mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
* src/files.h, src/files.c (open_files, close_files): Remove.
* src/main.c (main): Don't open/close files, nor invoke lex_free, let... * src/reader.c (reader): Do it.
This commit is contained in:
28
src/files.c
28
src/files.c
@@ -437,34 +437,6 @@ compute_output_file_names (void)
|
||||
#endif /* MSDOS */
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------.
|
||||
| Open the input file. Look for the skeletons. Find the names of |
|
||||
| the output files. Prepare the obstacks. |
|
||||
`-----------------------------------------------------------------*/
|
||||
|
||||
void
|
||||
open_files (void)
|
||||
{
|
||||
finput = xfopen (infile, "r");
|
||||
|
||||
/* Initialize the obstacks. */
|
||||
obstack_init (&action_obstack);
|
||||
obstack_init (&attrs_obstack);
|
||||
obstack_init (&guard_obstack);
|
||||
obstack_init (&output_obstack);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*-----------------------.
|
||||
| Close the open file.. |
|
||||
`-----------------------*/
|
||||
|
||||
void
|
||||
close_files (void)
|
||||
{
|
||||
xfclose (finput);
|
||||
}
|
||||
|
||||
/*---------------------------.
|
||||
| Produce the output files. |
|
||||
|
||||
Reference in New Issue
Block a user