mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(output_skeleton): Call xfopen instead of duplicating xfopen's body.
This commit is contained in:
@@ -526,10 +526,7 @@ output_skeleton (void)
|
||||
strcpy (full_path, pkgdatadir);
|
||||
full_path[pkgdatadirlen] = '/';
|
||||
strcpy (full_path + pkgdatadirlen + 1, m4sugar);
|
||||
in = fopen (full_path, "r");
|
||||
if (! in)
|
||||
error (EXIT_FAILURE, errno, "%s", full_path);
|
||||
xfclose (in);
|
||||
xfclose (xfopen (full_path, "r"));
|
||||
strcpy (full_path + pkgdatadirlen + 1, skeleton);
|
||||
|
||||
/* Create an m4 subprocess connected to us via two pipes. */
|
||||
|
||||
Reference in New Issue
Block a user