diff options
| author | Paul Eggert | 2011-04-10 20:39:45 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-10 20:39:45 -0700 |
| commit | 955cbe7b1720f09b2991b7d981147d9cc79d52e3 (patch) | |
| tree | 72ce39606c71e4ace0891f2127a7ef4fca32c209 /src/buffer.c | |
| parent | 95c82688bc8063f0be5a04baee5ea2a18f9ddf6b (diff) | |
| download | emacs-955cbe7b1720f09b2991b7d981147d9cc79d52e3.tar.gz emacs-955cbe7b1720f09b2991b7d981147d9cc79d52e3.zip | |
Declare Lisp_Object Q* variables to be 'static' if not exproted.
This makes it easier for human readers (and static analyzers)
to see whether these variables are used from other modules.
* alloc.c, buffer.c, bytecode.c, callint.c, casetab.c, category.c:
* ccl.c, character.c, charset.c, cmds.c, coding.c, composite.c:
* data.c, dbusbind.c, dired.c, editfns.c, eval.c, fileio.c, fns.c:
* font.c, frame.c, fringe.c, ftfont.c, image.c, keyboard.c, keymap.c:
* lread.c, macros.c, minibuf.c, print.c, process.c, search.c:
* sound.c, syntax.c, textprop.c, window.c, xdisp.c, xfaces.c, xfns.c:
* xmenu.c, xselect.c:
Declare Q* vars static if they are not used in other modules.
* ccl.h, character.h, charset.h, coding.h, composite.h, font.h:
* frame.h, intervals.h, keyboard.h, lisp.h, process.h, syntax.h:
Remove decls of unexported vars.
* keyboard.h (EVENT_HEAD_UNMODIFIED): Remove now-unused macro.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/buffer.c b/src/buffer.c index a88afbb36e6..82913ac20e7 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -113,30 +113,31 @@ static void reset_buffer_local_variables (struct buffer *b, int permanent_too); | |||
| 113 | to prevent lossage due to user rplac'ing this alist or its elements. */ | 113 | to prevent lossage due to user rplac'ing this alist or its elements. */ |
| 114 | Lisp_Object Vbuffer_alist; | 114 | Lisp_Object Vbuffer_alist; |
| 115 | 115 | ||
| 116 | Lisp_Object Qkill_buffer_query_functions; | 116 | static Lisp_Object Qkill_buffer_query_functions; |
| 117 | 117 | ||
| 118 | /* Hook run before changing a major mode. */ | 118 | /* Hook run before changing a major mode. */ |
| 119 | Lisp_Object Qchange_major_mode_hook; | 119 | static Lisp_Object Qchange_major_mode_hook; |
| 120 | 120 | ||
| 121 | Lisp_Object Qfirst_change_hook; | 121 | Lisp_Object Qfirst_change_hook; |
| 122 | Lisp_Object Qbefore_change_functions; | 122 | Lisp_Object Qbefore_change_functions; |
| 123 | Lisp_Object Qafter_change_functions; | 123 | Lisp_Object Qafter_change_functions; |
| 124 | Lisp_Object Qucs_set_table_for_input; | 124 | static Lisp_Object Qucs_set_table_for_input; |
| 125 | 125 | ||
| 126 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | 126 | static Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; |
| 127 | Lisp_Object Qpermanent_local_hook; | 127 | static Lisp_Object Qpermanent_local_hook; |
| 128 | 128 | ||
| 129 | Lisp_Object Qprotected_field; | 129 | static Lisp_Object Qprotected_field; |
| 130 | 130 | ||
| 131 | Lisp_Object QSFundamental; /* A string "Fundamental" */ | 131 | static Lisp_Object QSFundamental; /* A string "Fundamental" */ |
| 132 | 132 | ||
| 133 | Lisp_Object Qkill_buffer_hook; | 133 | static Lisp_Object Qkill_buffer_hook; |
| 134 | 134 | ||
| 135 | Lisp_Object Qget_file_buffer; | 135 | static Lisp_Object Qget_file_buffer; |
| 136 | 136 | ||
| 137 | Lisp_Object Qoverlayp; | 137 | static Lisp_Object Qoverlayp; |
| 138 | 138 | ||
| 139 | Lisp_Object Qpriority, Qevaporate, Qbefore_string, Qafter_string; | 139 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; |
| 140 | static Lisp_Object Qevaporate; | ||
| 140 | 141 | ||
| 141 | Lisp_Object Qmodification_hooks; | 142 | Lisp_Object Qmodification_hooks; |
| 142 | Lisp_Object Qinsert_in_front_hooks; | 143 | Lisp_Object Qinsert_in_front_hooks; |