X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e141f4d4bb6584bfbf13003047a2e48e9a6eab6a..a4122000c6a46989617c68d7dec9451c50b632ee:/src/files.h diff --git a/src/files.h b/src/files.h index e8f28bff..9b857190 100644 --- a/src/files.h +++ b/src/files.h @@ -1,6 +1,6 @@ /* File names and variables for bison, - Copyright (C) 1984, 1989, 2000-2002, 2006-2007, 2009-2010 Free + Copyright (C) 1984, 1989, 2000-2002, 2006-2007, 2009-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -63,9 +63,18 @@ extern char *all_but_ext; void compute_output_file_names (void); void output_file_names_free (void); -void output_file_name_check (char const *file_name); -FILE *xfopen (const char *name, const char *mode); +/** Record that we generate file \a file_name. + * \param source whether this is a source file (*c, *.java...) + * as opposed to a report (*.output, *.dot...). + */ +void output_file_name_check (char **file_name, bool source); + +/** Remove all the generated source files. */ +void unlink_generated_sources (void); + +FILE *xfopen (const char *name, char const *mode); void xfclose (FILE *ptr); +FILE *xfdopen (int fd, char const *mode); #endif /* !FILES_H_ */