X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7d424de14c0385012d328642bec6874c8e6cef17..00cebd11d48e07065cd012929d96085cfe37d07b:/src/files.h diff --git a/src/files.h b/src/files.h index 7742189f..85eafc3e 100644 --- a/src/files.h +++ b/src/files.h @@ -1,7 +1,7 @@ /* File names and variables for bison, - Copyright (C) 1984, 1989, 2000, 2001, 2002, 2006, 2007, 2009, 2010 - Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 2000-2002, 2006-2007, 2009-2015 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 **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_ */