mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53: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);
|
strcpy (full_path, pkgdatadir);
|
||||||
full_path[pkgdatadirlen] = '/';
|
full_path[pkgdatadirlen] = '/';
|
||||||
strcpy (full_path + pkgdatadirlen + 1, m4sugar);
|
strcpy (full_path + pkgdatadirlen + 1, m4sugar);
|
||||||
in = fopen (full_path, "r");
|
xfclose (xfopen (full_path, "r"));
|
||||||
if (! in)
|
|
||||||
error (EXIT_FAILURE, errno, "%s", full_path);
|
|
||||||
xfclose (in);
|
|
||||||
strcpy (full_path + pkgdatadirlen + 1, skeleton);
|
strcpy (full_path + pkgdatadirlen + 1, skeleton);
|
||||||
|
|
||||||
/* Create an m4 subprocess connected to us via two pipes. */
|
/* Create an m4 subprocess connected to us via two pipes. */
|
||||||
|
|||||||
Reference in New Issue
Block a user