From f14b7e14bb9284b6020431789ebc4c0dac1ef487 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 14 Mar 2011 18:42:54 -0700 Subject: [PATCH] * fileio.c (file_name_as_directory, directory_file_name): (barf_or_query_if_file_exists, auto_save_error, auto_save_1): Now static. --- src/ChangeLog | 4 ++++ src/fileio.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2fb5e03ca96..1a7f0bbf7b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2011-03-15 Paul Eggert + * fileio.c (file_name_as_directory, directory_file_name): + (barf_or_query_if_file_exists, auto_save_error, auto_save_1): + Now static. + * minibuf.c (choose_minibuf_frame_1): Now static. (Ftry_completion, Fall_completions): Rename or remove locals to avoid shadowing. diff --git a/src/fileio.c b/src/fileio.c index 18e9dbe9680..e68fcbc65b5 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -433,7 +433,7 @@ get a current directory to run processes in. */) } -char * +static char * file_name_as_directory (char *out, char *in) { int size = strlen (in) - 1; @@ -496,7 +496,7 @@ For a Unix-syntax file name, just appends a slash. */) * Value is nonzero if the string output is different from the input. */ -int +static int directory_file_name (char *src, char *dst) { long slen; @@ -1734,7 +1734,7 @@ expand_and_dir_to_file (Lisp_Object filename, Lisp_Object defdir) If QUICK is nonzero, we ask for y or n, not yes or no. */ -void +static void barf_or_query_if_file_exists (Lisp_Object absname, const char *querystring, int interactive, struct stat *statptr, int quick) { @@ -5059,7 +5059,7 @@ An argument specifies the modification time value to use return Qnil; } -Lisp_Object +static Lisp_Object auto_save_error (Lisp_Object error) { Lisp_Object args[3], msg; @@ -5095,7 +5095,7 @@ auto_save_error (Lisp_Object error) return Qnil; } -Lisp_Object +static Lisp_Object auto_save_1 (void) { struct stat st; -- 2.39.2