aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-13 19:16:00 -0700
committerPaul Eggert2011-04-13 19:16:00 -0700
commit40ccffa6ff0f62689cac373e3d21d25084c1b7b3 (patch)
treec1cf10b54e34c07a83fdcb7a572da10a2361c21a /src/process.c
parentad64fc978bc5a83e25827ab4f55d4cbc8d0dd25a (diff)
downloademacs-40ccffa6ff0f62689cac373e3d21d25084c1b7b3.tar.gz
emacs-40ccffa6ff0f62689cac373e3d21d25084c1b7b3.zip
* process.c: Make symbols static if they're not exported.
(process_tick, update_tick, create_process, chan_process): (Vprocess_alist, proc_buffered_char, datagram_access): (fd_callback_data, send_process_frame, process_sent_to): Now static. (deactivate_process): Mark defn as static, as well as decl. * lisp.h (create_process): Remove decl. * process.h (chan_process, Vprocess_alist): Remove decls.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/process.c b/src/process.c
index 51546e7c78a..7efbab11190 100644
--- a/src/process.c
+++ b/src/process.c
@@ -165,12 +165,10 @@ extern Lisp_Object QCfilter;
165extern int h_errno; 165extern int h_errno;
166#endif 166#endif
167 167
168/* These next two vars are non-static since sysdep.c uses them in the
169 emulation of `select'. */
170/* Number of events of change of status of a process. */ 168/* Number of events of change of status of a process. */
171int process_tick; 169static int process_tick;
172/* Number of events for which the user or sentinel has been notified. */ 170/* Number of events for which the user or sentinel has been notified. */
173int update_tick; 171static int update_tick;
174 172
175/* Define NON_BLOCKING_CONNECT if we can support non-blocking connects. */ 173/* Define NON_BLOCKING_CONNECT if we can support non-blocking connects. */
176 174
@@ -238,6 +236,7 @@ static int process_output_skip;
238#endif 236#endif
239 237
240INFUN (Fget_process, 1); 238INFUN (Fget_process, 1);
239static void create_process (Lisp_Object, char **, Lisp_Object);
241static int keyboard_bit_set (SELECT_TYPE *); 240static int keyboard_bit_set (SELECT_TYPE *);
242static void deactivate_process (Lisp_Object); 241static void deactivate_process (Lisp_Object);
243static void status_notify (struct Lisp_Process *); 242static void status_notify (struct Lisp_Process *);
@@ -287,10 +286,10 @@ static int max_process_desc;
287static int max_input_desc; 286static int max_input_desc;
288 287
289/* Indexed by descriptor, gives the process (if any) for that descriptor */ 288/* Indexed by descriptor, gives the process (if any) for that descriptor */
290Lisp_Object chan_process[MAXDESC]; 289static Lisp_Object chan_process[MAXDESC];
291 290
292/* Alist of elements (NAME . PROCESS) */ 291/* Alist of elements (NAME . PROCESS) */
293Lisp_Object Vprocess_alist; 292static Lisp_Object Vprocess_alist;
294 293
295/* Buffered-ahead input char from process, indexed by channel. 294/* Buffered-ahead input char from process, indexed by channel.
296 -1 means empty (no char is buffered). 295 -1 means empty (no char is buffered).
@@ -298,8 +297,7 @@ Lisp_Object Vprocess_alist;
298 output from the process is to read at least one char. 297 output from the process is to read at least one char.
299 Always -1 on systems that support FIONREAD. */ 298 Always -1 on systems that support FIONREAD. */
300 299
301/* Don't make static; need to access externally. */ 300static int proc_buffered_char[MAXDESC];
302int proc_buffered_char[MAXDESC];
303 301
304/* Table of `struct coding-system' for each process. */ 302/* Table of `struct coding-system' for each process. */
305static struct coding_system *proc_decode_coding_system[MAXDESC]; 303static struct coding_system *proc_decode_coding_system[MAXDESC];
@@ -307,7 +305,7 @@ static struct coding_system *proc_encode_coding_system[MAXDESC];
307 305
308#ifdef DATAGRAM_SOCKETS 306#ifdef DATAGRAM_SOCKETS
309/* Table of `partner address' for datagram sockets. */ 307/* Table of `partner address' for datagram sockets. */
310struct sockaddr_and_len { 308static struct sockaddr_and_len {
311 struct sockaddr *sa; 309 struct sockaddr *sa;
312 int len; 310 int len;
313} datagram_address[MAXDESC]; 311} datagram_address[MAXDESC];
@@ -323,7 +321,7 @@ static int pty_max_bytes;
323 321
324 322
325 323
326struct fd_callback_data 324static struct fd_callback_data
327{ 325{
328 fd_callback func; 326 fd_callback func;
329 void *data; 327 void *data;
@@ -1521,7 +1519,7 @@ create_process_1 (struct atimer *timer)
1521} 1519}
1522 1520
1523 1521
1524void 1522static void
1525create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) 1523create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
1526{ 1524{
1527 int inchannel, outchannel; 1525 int inchannel, outchannel;
@@ -3793,7 +3791,7 @@ FLAGS is the current flags of the interface. */)
3793 3791
3794/* Turn off input and output for process PROC. */ 3792/* Turn off input and output for process PROC. */
3795 3793
3796void 3794static void
3797deactivate_process (Lisp_Object proc) 3795deactivate_process (Lisp_Object proc)
3798{ 3796{
3799 register int inchannel, outchannel; 3797 register int inchannel, outchannel;
@@ -5219,8 +5217,8 @@ read_process_output (Lisp_Object proc, register int channel)
5219 5217
5220/* Sending data to subprocess */ 5218/* Sending data to subprocess */
5221 5219
5222jmp_buf send_process_frame; 5220static jmp_buf send_process_frame;
5223Lisp_Object process_sent_to; 5221static Lisp_Object process_sent_to;
5224 5222
5225static void 5223static void
5226send_process_trap (int ignore) 5224send_process_trap (int ignore)