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/coding.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/coding.c')
| -rw-r--r-- | src/coding.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/coding.c b/src/coding.c index 13fcb7fb8a5..d2124db73f2 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -300,27 +300,30 @@ encode_coding_XXX (struct coding_system *coding) | |||
| 300 | 300 | ||
| 301 | Lisp_Object Vcoding_system_hash_table; | 301 | Lisp_Object Vcoding_system_hash_table; |
| 302 | 302 | ||
| 303 | Lisp_Object Qcoding_system, Qcoding_aliases, Qeol_type; | 303 | static Lisp_Object Qcoding_system, Qeol_type; |
| 304 | static Lisp_Object Qcoding_aliases; | ||
| 304 | Lisp_Object Qunix, Qdos; | 305 | Lisp_Object Qunix, Qdos; |
| 305 | Lisp_Object Qbuffer_file_coding_system; | 306 | Lisp_Object Qbuffer_file_coding_system; |
| 306 | Lisp_Object Qpost_read_conversion, Qpre_write_conversion; | 307 | static Lisp_Object Qpost_read_conversion, Qpre_write_conversion; |
| 307 | Lisp_Object Qdefault_char; | 308 | static Lisp_Object Qdefault_char; |
| 308 | Lisp_Object Qno_conversion, Qundecided; | 309 | Lisp_Object Qno_conversion, Qundecided; |
| 309 | Lisp_Object Qcharset, Qiso_2022, Qutf_8, Qutf_16, Qshift_jis, Qbig5; | 310 | Lisp_Object Qcharset, Qutf_8; |
| 310 | Lisp_Object Qbig, Qlittle; | 311 | static Lisp_Object Qiso_2022; |
| 311 | Lisp_Object Qcoding_system_history; | 312 | static Lisp_Object Qutf_16, Qshift_jis, Qbig5; |
| 312 | Lisp_Object Qvalid_codes; | 313 | static Lisp_Object Qbig, Qlittle; |
| 313 | Lisp_Object QCcategory, QCmnemonic, QCdefault_char; | 314 | static Lisp_Object Qcoding_system_history; |
| 314 | Lisp_Object QCdecode_translation_table, QCencode_translation_table; | 315 | static Lisp_Object Qvalid_codes; |
| 315 | Lisp_Object QCpost_read_conversion, QCpre_write_conversion; | 316 | static Lisp_Object QCcategory, QCmnemonic, QCdefault_char; |
| 316 | Lisp_Object QCascii_compatible_p; | 317 | static Lisp_Object QCdecode_translation_table, QCencode_translation_table; |
| 318 | static Lisp_Object QCpost_read_conversion, QCpre_write_conversion; | ||
| 319 | static Lisp_Object QCascii_compatible_p; | ||
| 317 | 320 | ||
| 318 | Lisp_Object Qcall_process, Qcall_process_region; | 321 | Lisp_Object Qcall_process, Qcall_process_region; |
| 319 | Lisp_Object Qstart_process, Qopen_network_stream; | 322 | Lisp_Object Qstart_process, Qopen_network_stream; |
| 320 | Lisp_Object Qtarget_idx; | 323 | static Lisp_Object Qtarget_idx; |
| 321 | 324 | ||
| 322 | Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; | 325 | static Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; |
| 323 | Lisp_Object Qinterrupted, Qinsufficient_memory; | 326 | static Lisp_Object Qinterrupted, Qinsufficient_memory; |
| 324 | 327 | ||
| 325 | /* If a symbol has this property, evaluate the value to define the | 328 | /* If a symbol has this property, evaluate the value to define the |
| 326 | symbol as a coding system. */ | 329 | symbol as a coding system. */ |
| @@ -351,8 +354,8 @@ struct coding_system safe_terminal_coding; | |||
| 351 | 354 | ||
| 352 | Lisp_Object Qtranslation_table; | 355 | Lisp_Object Qtranslation_table; |
| 353 | Lisp_Object Qtranslation_table_id; | 356 | Lisp_Object Qtranslation_table_id; |
| 354 | Lisp_Object Qtranslation_table_for_decode; | 357 | static Lisp_Object Qtranslation_table_for_decode; |
| 355 | Lisp_Object Qtranslation_table_for_encode; | 358 | static Lisp_Object Qtranslation_table_for_encode; |
| 356 | 359 | ||
| 357 | /* Two special coding systems. */ | 360 | /* Two special coding systems. */ |
| 358 | Lisp_Object Vsjis_coding_system; | 361 | Lisp_Object Vsjis_coding_system; |