maint: xfdopen, and scope reduction.

* src/files.h, src/files.c (xfdopen): New.
* src/output.c (output_skeleton): Use it.
Reduce the scope of argv.
This commit is contained in:
Akim Demaille
2012-06-15 11:56:13 +02:00
parent aed41cf9a0
commit 22539284f3
3 changed files with 18 additions and 13 deletions

View File

@@ -65,7 +65,8 @@ void compute_output_file_names (void);
void output_file_names_free (void);
void output_file_name_check (char **file_name);
FILE *xfopen (const char *name, const char *mode);
FILE *xfopen (const char *name, char const *mode);
void xfclose (FILE *ptr);
FILE *xfdopen (int fd, char const *mode);
#endif /* !FILES_H_ */