aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorJuanma Barranquero2002-07-11 14:18:02 +0000
committerJuanma Barranquero2002-07-11 14:18:02 +0000
commitaed13378308fae471bf2c11870a456e457166c31 (patch)
tree89ee2f5aaffc88a04531e85b1c1da979f17483f2 /src/callproc.c
parente20b31732ad01d8de7605ea740525dedc3dbdb90 (diff)
downloademacs-aed13378308fae471bf2c11870a456e457166c31.tar.gz
emacs-aed13378308fae471bf2c11870a456e457166c31.zip
Use macro SPECPDL_INDEX.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/callproc.c b/src/callproc.c
index f671c044419..c95055c67aa 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -172,7 +172,7 @@ call_process_cleanup (fdpid)
172 172
173 if (EMACS_KILLPG (pid, SIGINT) == 0) 173 if (EMACS_KILLPG (pid, SIGINT) == 0)
174 { 174 {
175 int count = specpdl_ptr - specpdl; 175 int count = SPECPDL_INDEX ();
176 record_unwind_protect (call_process_kill, fdpid); 176 record_unwind_protect (call_process_kill, fdpid);
177 message1 ("Waiting for process to die...(type C-g again to kill it instantly)"); 177 message1 ("Waiting for process to die...(type C-g again to kill it instantly)");
178 immediate_quit = 1; 178 immediate_quit = 1;
@@ -220,7 +220,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
220 char buf[16384]; 220 char buf[16384];
221 char *bufptr = buf; 221 char *bufptr = buf;
222 int bufsize = 16384; 222 int bufsize = 16384;
223 int count = specpdl_ptr - specpdl; 223 int count = SPECPDL_INDEX ();
224 224
225 register unsigned char **new_argv 225 register unsigned char **new_argv
226 = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); 226 = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *));
@@ -936,7 +936,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
936 } 936 }
937 937
938 { 938 {
939 int post_read_count = specpdl_ptr - specpdl; 939 int post_read_count = SPECPDL_INDEX ();
940 940
941 record_unwind_protect (save_excursion_restore, save_excursion_save ()); 941 record_unwind_protect (save_excursion_restore, save_excursion_save ());
942 inserted = PT - pt_orig; 942 inserted = PT - pt_orig;
@@ -1017,7 +1017,7 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r
1017 struct gcpro gcpro1; 1017 struct gcpro gcpro1;
1018 Lisp_Object filename_string; 1018 Lisp_Object filename_string;
1019 register Lisp_Object start, end; 1019 register Lisp_Object start, end;
1020 int count = specpdl_ptr - specpdl; 1020 int count = SPECPDL_INDEX ();
1021 /* Qt denotes we have not yet called Ffind_operation_coding_system. */ 1021 /* Qt denotes we have not yet called Ffind_operation_coding_system. */
1022 Lisp_Object coding_systems; 1022 Lisp_Object coding_systems;
1023 Lisp_Object val, *args2; 1023 Lisp_Object val, *args2;
@@ -1091,7 +1091,7 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r
1091 } 1091 }
1092 1092
1093 { 1093 {
1094 int count1 = specpdl_ptr - specpdl; 1094 int count1 = SPECPDL_INDEX ();
1095 1095
1096 specbind (intern ("coding-system-for-write"), val); 1096 specbind (intern ("coding-system-for-write"), val);
1097 Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil); 1097 Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil);