aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 12:21:04 +0000
committerKarl Heuer1994-10-04 12:21:04 +0000
commit1d056e645cef6eeaa763626e376d4fe9366b412d (patch)
tree28bd5c3f0b3d1a3e2889321735e6aef210c65e1b /src/process.c
parent633307b545c9003d73398f7ac5d95d3fd6b6f622 (diff)
downloademacs-1d056e645cef6eeaa763626e376d4fe9366b412d.tar.gz
emacs-1d056e645cef6eeaa763626e376d4fe9366b412d.zip
(make_process, create_process, Fopen_network_stream, deactivate_process,
Faccept_process_output, Fprocess_send_eof): Use new accessor macros instead of calling XSET directly.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/process.c b/src/process.c
index fee7fda86f6..70ba93dfc9e 100644
--- a/src/process.c
+++ b/src/process.c
@@ -470,8 +470,8 @@ make_process (name)
470 XSETTYPE (val, Lisp_Process); 470 XSETTYPE (val, Lisp_Process);
471 471
472 p = XPROCESS (val); 472 p = XPROCESS (val);
473 XSET (p->infd, Lisp_Int, -1); 473 XSETINT (p->infd, -1);
474 XSET (p->outfd, Lisp_Int, -1); 474 XSETINT (p->outfd, -1);
475 XFASTINT (p->pid) = 0; 475 XFASTINT (p->pid) = 0;
476 XFASTINT (p->tick) = 0; 476 XFASTINT (p->tick) = 0;
477 XFASTINT (p->update_tick) = 0; 477 XFASTINT (p->update_tick) = 0;
@@ -1249,8 +1249,8 @@ create_process (process, new_argv, current_dir)
1249 /* Record this as an active process, with its channels. 1249 /* Record this as an active process, with its channels.
1250 As a result, child_setup will close Emacs's side of the pipes. */ 1250 As a result, child_setup will close Emacs's side of the pipes. */
1251 chan_process[inchannel] = process; 1251 chan_process[inchannel] = process;
1252 XSET (XPROCESS (process)->infd, Lisp_Int, inchannel); 1252 XSETINT (XPROCESS (process)->infd, inchannel);
1253 XSET (XPROCESS (process)->outfd, Lisp_Int, outchannel); 1253 XSETINT (XPROCESS (process)->outfd, outchannel);
1254 /* Record the tty descriptor used in the subprocess. */ 1254 /* Record the tty descriptor used in the subprocess. */
1255 if (forkin < 0) 1255 if (forkin < 0)
1256 XPROCESS (process)->subtty = Qnil; 1256 XPROCESS (process)->subtty = Qnil;
@@ -1659,8 +1659,8 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
1659 XPROCESS (proc)->filter = Qnil; 1659 XPROCESS (proc)->filter = Qnil;
1660 XPROCESS (proc)->command = Qnil; 1660 XPROCESS (proc)->command = Qnil;
1661 XPROCESS (proc)->pid = Qnil; 1661 XPROCESS (proc)->pid = Qnil;
1662 XSET (XPROCESS (proc)->infd, Lisp_Int, s); 1662 XSETINT (XPROCESS (proc)->infd, s);
1663 XSET (XPROCESS (proc)->outfd, Lisp_Int, outch); 1663 XSETINT (XPROCESS (proc)->outfd, outch);
1664 XPROCESS (proc)->status = Qrun; 1664 XPROCESS (proc)->status = Qrun;
1665 FD_SET (inch, &input_wait_mask); 1665 FD_SET (inch, &input_wait_mask);
1666 if (inch > max_process_desc) 1666 if (inch > max_process_desc)
@@ -1698,8 +1698,8 @@ deactivate_process (proc)
1698 close (outchannel); 1698 close (outchannel);
1699#endif 1699#endif
1700 1700
1701 XSET (p->infd, Lisp_Int, -1); 1701 XSETINT (p->infd, -1);
1702 XSET (p->outfd, Lisp_Int, -1); 1702 XSETINT (p->outfd, -1);
1703 chan_process[inchannel] = Qnil; 1703 chan_process[inchannel] = Qnil;
1704 FD_CLR (inchannel, &input_wait_mask); 1704 FD_CLR (inchannel, &input_wait_mask);
1705 if (inchannel == max_process_desc) 1705 if (inchannel == max_process_desc)
@@ -1759,7 +1759,7 @@ Return non-nil iff we received any output before the timeout expired.")
1759 CHECK_NUMBER (timeout_msecs, 2); 1759 CHECK_NUMBER (timeout_msecs, 2);
1760 useconds = XINT (timeout_msecs); 1760 useconds = XINT (timeout_msecs);
1761 if (!INTEGERP (timeout)) 1761 if (!INTEGERP (timeout))
1762 XSET (timeout, Lisp_Int, 0); 1762 XSETINT (timeout, 0);
1763 1763
1764 { 1764 {
1765 int carry = useconds / 1000000; 1765 int carry = useconds / 1000000;
@@ -2919,7 +2919,7 @@ text to PROCESS after you call this function.")
2919 else 2919 else
2920 { 2920 {
2921 close (XINT (XPROCESS (proc)->outfd)); 2921 close (XINT (XPROCESS (proc)->outfd));
2922 XSET (XPROCESS (proc)->outfd, Lisp_Int, open (NULL_DEVICE, O_WRONLY)); 2922 XSETINT (XPROCESS (proc)->outfd, open (NULL_DEVICE, O_WRONLY));
2923 } 2923 }
2924#endif /* VMS */ 2924#endif /* VMS */
2925 return process; 2925 return process;