diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-01-31 15:31:41 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-01-31 15:33:21 -0800 |
commit | 47679e63230da94cffed568a4d5167ffc1baea96 (patch) | |
tree | 45a1f8a1ed3fe07174d509205a4ba1d393435758 /src/sysdep.c | |
parent | 05d2fc7170fb66a87601b1c76ddae2c1b7b4b934 (diff) | |
download | emacs-47679e63230da94cffed568a4d5167ffc1baea96.tar.gz |
Prefer static to extern where either will do
* src/charset.c (charset_table_size):
* src/pdumper.c (dump_private):
* src/sysdep.c (init_sigsegv):
* src/window.c (old_selected_window):
Now static.
* src/charset.c (charset_table_size):
Now int, since the value always fits in int.
* src/gtkutil.c (xg_gtk_initialized): Now present only if
HAVE_XWIDGETS, to make it clearer that this is an xwidgets
hack. All uses changed.
* src/lread.c (ndefsubr): Remove; unused.
* src/pdumper.h: Use usual GNU indenting style for functions,
since my static-vs-extern checking hack relies on it.
(dump_public): Always declare; simpler and doesn’t hurt.
(pdumper_handle_page_fault): Remove unused decl.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index f8594d6a915..6d85692ab11 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1893,7 +1893,7 @@ handle_sigsegv (int sig, siginfo_t *siginfo, void *arg) /* Return true if we have successfully set up SIGSEGV handler on alternate stack. Otherwise we just treat SIGSEGV among the rest of fatal signals. */ -bool +static bool init_sigsegv (void) { struct sigaction sa; @@ -1916,7 +1916,7 @@ init_sigsegv (void) #else /* not HAVE_STACK_OVERFLOW_HANDLING or WINDOWSNT */ -bool +static bool init_sigsegv (void) { return 0; |