X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3ea5f0ec817fe9d8a7384334f7d537dce66af0f4..eab522e49ab693a1be6792f0febb69acfa6e99c9:/src/files.c diff --git a/src/files.c b/src/files.c index abe86463..1c1ccf95 100644 --- a/src/files.c +++ b/src/files.c @@ -32,6 +32,7 @@ #include "files.h" #include "getargs.h" #include "gram.h" +#include "stdio-safer.h" /* From basename.c. Almost a lie, as it returns a char *. */ const char *base_name (char const *name); @@ -65,9 +66,9 @@ static char *full_base_name = NULL; char *short_base_name = NULL; /* C source file extension (the parser source). */ -const char *src_extension = NULL; +static char const *src_extension = NULL; /* Header file extension (if option ``-d'' is specified). */ -const char *header_extension = NULL; +static char const *header_extension = NULL; /*-----------------------------------------------------------------. | Return a newly allocated string composed of the concatenation of | @@ -216,8 +217,6 @@ filename_split (const char *filename, } -/* FIXME: Should use xstrndup. */ - static void compute_base_names (void) {