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/process.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/process.c')
| -rw-r--r-- | src/process.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/process.c b/src/process.c index ec96c1aa67e..89d04081eb7 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -127,22 +127,24 @@ int inhibit_sentinels; | |||
| 127 | 127 | ||
| 128 | #ifdef subprocesses | 128 | #ifdef subprocesses |
| 129 | 129 | ||
| 130 | Lisp_Object Qprocessp; | 130 | static Lisp_Object Qprocessp; |
| 131 | Lisp_Object Qrun, Qstop, Qsignal; | 131 | static Lisp_Object Qrun, Qstop, Qsignal; |
| 132 | Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten; | 132 | static Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten; |
| 133 | Lisp_Object Qlocal, Qipv4, Qdatagram, Qseqpacket; | 133 | Lisp_Object Qlocal; |
| 134 | Lisp_Object Qreal, Qnetwork, Qserial; | 134 | static Lisp_Object Qipv4, Qdatagram, Qseqpacket; |
| 135 | static Lisp_Object Qreal, Qnetwork, Qserial; | ||
| 135 | #ifdef AF_INET6 | 136 | #ifdef AF_INET6 |
| 136 | Lisp_Object Qipv6; | 137 | static Lisp_Object Qipv6; |
| 137 | #endif | 138 | #endif |
| 138 | Lisp_Object QCport, QCspeed, QCprocess; | 139 | static Lisp_Object QCport, QCprocess; |
| 140 | Lisp_Object QCspeed; | ||
| 139 | Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; | 141 | Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; |
| 140 | Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; | 142 | Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; |
| 141 | Lisp_Object QCbuffer, QChost, QCservice; | 143 | static Lisp_Object QCbuffer, QChost, QCservice; |
| 142 | Lisp_Object QClocal, QCremote, QCcoding; | 144 | static Lisp_Object QClocal, QCremote, QCcoding; |
| 143 | Lisp_Object QCserver, QCnowait, QCnoquery, QCstop; | 145 | static Lisp_Object QCserver, QCnowait, QCnoquery, QCstop; |
| 144 | Lisp_Object QCsentinel, QClog, QCoptions, QCplist; | 146 | static Lisp_Object QCsentinel, QClog, QCoptions, QCplist; |
| 145 | Lisp_Object Qlast_nonmenu_event; | 147 | static Lisp_Object Qlast_nonmenu_event; |
| 146 | /* QCfamily is declared and initialized in xfaces.c, | 148 | /* QCfamily is declared and initialized in xfaces.c, |
| 147 | QCfilter in keyboard.c. */ | 149 | QCfilter in keyboard.c. */ |
| 148 | extern Lisp_Object QCfamily, QCfilter; | 150 | extern Lisp_Object QCfamily, QCfilter; |