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/lread.c | |
parent | 05d2fc7170fb66a87601b1c76ddae2c1b7b4b934 (diff) | |
download | emacs-47679e63230da94cffed568a4d5167ffc1baea96.tar.gz emacs-47679e63230da94cffed568a4d5167ffc1baea96.tar.bz2 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/lread.c')
-rw-r--r-- | src/lread.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lread.c b/src/lread.c index dde9ccef549..ff9b75475b8 100644 --- a/src/lread.c +++ b/src/lread.c @@ -4402,8 +4402,6 @@ init_obarray_once (void) } -int ndefsubr; - void defsubr (union Aligned_Lisp_Subr *aname) { @@ -4413,7 +4411,6 @@ defsubr (union Aligned_Lisp_Subr *aname) XSETPVECTYPE (sname, PVEC_SUBR); XSETSUBR (tem, sname); set_symbol_function (sym, tem); - ++ndefsubr; } #ifdef NOTDEF /* Use fset in subr.el now! */ |