diff options
| author | Paul Eggert | 2019-01-31 15:31:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-01-31 15:33:21 -0800 |
| commit | 47679e63230da94cffed568a4d5167ffc1baea96 (patch) | |
| tree | 45a1f8a1ed3fe07174d509205a4ba1d393435758 /src/sysdep.c | |
| parent | 05d2fc7170fb66a87601b1c76ddae2c1b7b4b934 (diff) | |
| download | emacs-47679e63230da94cffed568a4d5167ffc1baea96.tar.gz emacs-47679e63230da94cffed568a4d5167ffc1baea96.zip | |
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) | |||
| 1893 | /* Return true if we have successfully set up SIGSEGV handler on alternate | 1893 | /* Return true if we have successfully set up SIGSEGV handler on alternate |
| 1894 | stack. Otherwise we just treat SIGSEGV among the rest of fatal signals. */ | 1894 | stack. Otherwise we just treat SIGSEGV among the rest of fatal signals. */ |
| 1895 | 1895 | ||
| 1896 | bool | 1896 | static bool |
| 1897 | init_sigsegv (void) | 1897 | init_sigsegv (void) |
| 1898 | { | 1898 | { |
| 1899 | struct sigaction sa; | 1899 | struct sigaction sa; |
| @@ -1916,7 +1916,7 @@ init_sigsegv (void) | |||
| 1916 | 1916 | ||
| 1917 | #else /* not HAVE_STACK_OVERFLOW_HANDLING or WINDOWSNT */ | 1917 | #else /* not HAVE_STACK_OVERFLOW_HANDLING or WINDOWSNT */ |
| 1918 | 1918 | ||
| 1919 | bool | 1919 | static bool |
| 1920 | init_sigsegv (void) | 1920 | init_sigsegv (void) |
| 1921 | { | 1921 | { |
| 1922 | return 0; | 1922 | return 0; |