aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 16:10:39 +0000
committerKarl Heuer1994-10-04 16:10:39 +0000
commit22719df2b32462b02d50ba6322d31d32beb46db8 (patch)
tree92e4072f52e4b5fb197b8e84c47542975736599e /src/process.c
parentb5d25c37187f42bd9e51b6cb489c6f0c466c0bf5 (diff)
downloademacs-22719df2b32462b02d50ba6322d31d32beb46db8.tar.gz
emacs-22719df2b32462b02d50ba6322d31d32beb46db8.zip
(make_process, list_processes_1, create_process, Faccept_process_output,
wait_reading_process_input, read_process_output, send_process, sigchld_handler): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/process.c b/src/process.c
index 70ba93dfc9e..07b1e7c9ff8 100644
--- a/src/process.c
+++ b/src/process.c
@@ -472,9 +472,9 @@ make_process (name)
472 p = XPROCESS (val); 472 p = XPROCESS (val);
473 XSETINT (p->infd, -1); 473 XSETINT (p->infd, -1);
474 XSETINT (p->outfd, -1); 474 XSETINT (p->outfd, -1);
475 XFASTINT (p->pid) = 0; 475 XSETFASTINT (p->pid, 0);
476 XFASTINT (p->tick) = 0; 476 XSETFASTINT (p->tick, 0);
477 XFASTINT (p->update_tick) = 0; 477 XSETFASTINT (p->update_tick, 0);
478 p->raw_status_low = Qnil; 478 p->raw_status_low = Qnil;
479 p->raw_status_high = Qnil; 479 p->raw_status_high = Qnil;
480 p->status = Qrun; 480 p->status = Qrun;
@@ -862,7 +862,7 @@ list_processes_1 ()
862 register int state; 862 register int state;
863 char tembuf[80]; 863 char tembuf[80];
864 864
865 XFASTINT (minspace) = 1; 865 XSETFASTINT (minspace, 1);
866 866
867 set_buffer_internal (XBUFFER (Vstandard_output)); 867 set_buffer_internal (XBUFFER (Vstandard_output));
868 Fbuffer_disable_undo (Vstandard_output); 868 Fbuffer_disable_undo (Vstandard_output);
@@ -1255,7 +1255,7 @@ create_process (process, new_argv, current_dir)
1255 if (forkin < 0) 1255 if (forkin < 0)
1256 XPROCESS (process)->subtty = Qnil; 1256 XPROCESS (process)->subtty = Qnil;
1257 else 1257 else
1258 XFASTINT (XPROCESS (process)->subtty) = forkin; 1258 XSETFASTINT (XPROCESS (process)->subtty, forkin);
1259 XPROCESS (process)->pty_flag = (pty_flag ? Qt : Qnil); 1259 XPROCESS (process)->pty_flag = (pty_flag ? Qt : Qnil);
1260 XPROCESS (process)->status = Qrun; 1260 XPROCESS (process)->status = Qrun;
1261 1261
@@ -1440,7 +1440,7 @@ create_process (process, new_argv, current_dir)
1440 report_file_error ("Doing vfork", Qnil); 1440 report_file_error ("Doing vfork", Qnil);
1441 } 1441 }
1442 1442
1443 XFASTINT (XPROCESS (process)->pid) = pid; 1443 XSETFASTINT (XPROCESS (process)->pid, pid);
1444 1444
1445 /* If the subfork execv fails, and it exits, 1445 /* If the subfork execv fails, and it exits,
1446 this close hangs. I don't know why. 1446 this close hangs. I don't know why.
@@ -1796,7 +1796,7 @@ Return non-nil iff we received any output before the timeout expired.")
1796 } 1796 }
1797 1797
1798 if (NILP (proc)) 1798 if (NILP (proc))
1799 XFASTINT (proc) = 0; 1799 XSETFASTINT (proc, 0);
1800 1800
1801 return 1801 return
1802 (wait_reading_process_input (seconds, useconds, proc, 0) 1802 (wait_reading_process_input (seconds, useconds, proc, 0)
@@ -1870,14 +1870,14 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
1870 { 1870 {
1871 wait_proc = XPROCESS (read_kbd); 1871 wait_proc = XPROCESS (read_kbd);
1872 wait_channel = XINT (wait_proc->infd); 1872 wait_channel = XINT (wait_proc->infd);
1873 XFASTINT (read_kbd) = 0; 1873 XSETFASTINT (read_kbd, 0);
1874 } 1874 }
1875 1875
1876 /* If waiting for non-nil in a cell, record where. */ 1876 /* If waiting for non-nil in a cell, record where. */
1877 if (CONSP (read_kbd)) 1877 if (CONSP (read_kbd))
1878 { 1878 {
1879 wait_for_cell = &XCONS (read_kbd)->car; 1879 wait_for_cell = &XCONS (read_kbd)->car;
1880 XFASTINT (read_kbd) = 0; 1880 XSETFASTINT (read_kbd, 0);
1881 } 1881 }
1882 1882
1883 waiting_for_user_input_p = XINT (read_kbd); 1883 waiting_for_user_input_p = XINT (read_kbd);
@@ -2322,8 +2322,8 @@ read_process_output (proc, channel)
2322 Fset_buffer (p->buffer); 2322 Fset_buffer (p->buffer);
2323 opoint = point; 2323 opoint = point;
2324 old_read_only = current_buffer->read_only; 2324 old_read_only = current_buffer->read_only;
2325 XFASTINT (old_begv) = BEGV; 2325 XSETFASTINT (old_begv, BEGV);
2326 XFASTINT (old_zv) = ZV; 2326 XSETFASTINT (old_zv, ZV);
2327 2327
2328 current_buffer->read_only = Qnil; 2328 current_buffer->read_only = Qnil;
2329 2329
@@ -2511,7 +2511,7 @@ send_process (proc, buf, len, object)
2511 else if (STRINGP (object)) 2511 else if (STRINGP (object))
2512 offset = buf - (char *) XSTRING (object)->data; 2512 offset = buf - (char *) XSTRING (object)->data;
2513 2513
2514 XFASTINT (zero) = 0; 2514 XSETFASTINT (zero, 0);
2515 wait_reading_process_input (1, 0, zero, 0); 2515 wait_reading_process_input (1, 0, zero, 0);
2516 2516
2517 if (BUFFERP (object)) 2517 if (BUFFERP (object))
@@ -3052,8 +3052,8 @@ sigchld_handler (signo)
3052 3052
3053 XSETINT (p->tick, ++process_tick); 3053 XSETINT (p->tick, ++process_tick);
3054 u.wt = w; 3054 u.wt = w;
3055 XFASTINT (p->raw_status_low) = u.i & 0xffff; 3055 XSETFASTINT (p->raw_status_low, u.i & 0xffff);
3056 XFASTINT (p->raw_status_high) = u.i >> 16; 3056 XSETFASTINT (p->raw_status_high, u.i >> 16);
3057 3057
3058 /* If process has terminated, stop waiting for its output. */ 3058 /* If process has terminated, stop waiting for its output. */
3059 if (WIFSIGNALED (w) || WIFEXITED (w)) 3059 if (WIFSIGNALED (w) || WIFEXITED (w))