aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-10 20:39:45 -0700
committerPaul Eggert2011-04-10 20:39:45 -0700
commit955cbe7b1720f09b2991b7d981147d9cc79d52e3 (patch)
tree72ce39606c71e4ace0891f2127a7ef4fca32c209 /src/process.c
parent95c82688bc8063f0be5a04baee5ea2a18f9ddf6b (diff)
downloademacs-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.c26
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
130Lisp_Object Qprocessp; 130static Lisp_Object Qprocessp;
131Lisp_Object Qrun, Qstop, Qsignal; 131static Lisp_Object Qrun, Qstop, Qsignal;
132Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten; 132static Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten;
133Lisp_Object Qlocal, Qipv4, Qdatagram, Qseqpacket; 133Lisp_Object Qlocal;
134Lisp_Object Qreal, Qnetwork, Qserial; 134static Lisp_Object Qipv4, Qdatagram, Qseqpacket;
135static Lisp_Object Qreal, Qnetwork, Qserial;
135#ifdef AF_INET6 136#ifdef AF_INET6
136Lisp_Object Qipv6; 137static Lisp_Object Qipv6;
137#endif 138#endif
138Lisp_Object QCport, QCspeed, QCprocess; 139static Lisp_Object QCport, QCprocess;
140Lisp_Object QCspeed;
139Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; 141Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven;
140Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; 142Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary;
141Lisp_Object QCbuffer, QChost, QCservice; 143static Lisp_Object QCbuffer, QChost, QCservice;
142Lisp_Object QClocal, QCremote, QCcoding; 144static Lisp_Object QClocal, QCremote, QCcoding;
143Lisp_Object QCserver, QCnowait, QCnoquery, QCstop; 145static Lisp_Object QCserver, QCnowait, QCnoquery, QCstop;
144Lisp_Object QCsentinel, QClog, QCoptions, QCplist; 146static Lisp_Object QCsentinel, QClog, QCoptions, QCplist;
145Lisp_Object Qlast_nonmenu_event; 147static 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. */
148extern Lisp_Object QCfamily, QCfilter; 150extern Lisp_Object QCfamily, QCfilter;