mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 04:43:03 +00:00
Let the handling of the skeleton files be local to the procedures
that use it. * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No longer static. (fparser, open_extra_files): Remove. (open_files, output_files): Don't take care of fparser. * src/files.h: Adjust. * src/output.c (output_parser): Open and close the file to the skeleton. * src/reader.c (read_declarations): When %semantic_parser, open fguard.
This commit is contained in:
@@ -1002,11 +1002,9 @@ read_declarations (void)
|
||||
break;
|
||||
|
||||
case SEMANTIC_PARSER:
|
||||
if (semantic_parser == 0)
|
||||
{
|
||||
semantic_parser = 1;
|
||||
open_extra_files ();
|
||||
}
|
||||
if (!semantic_parser)
|
||||
fguard = xfopen (guardfile, "w");
|
||||
semantic_parser = 1;
|
||||
break;
|
||||
|
||||
case PURE_PARSER:
|
||||
|
||||
Reference in New Issue
Block a user