aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Möllmann2025-01-04 19:42:50 +0100
committerGerd Möllmann2025-01-08 04:19:18 +0100
commit1ab3d610aa54e8e109f7383e1ac2cbd129f641ab (patch)
tree3eb729ae87f6ad0ec446d44605bcac22cc5f280f /src
parent1d4386eb1893baea6afba03c526563c8a360708f (diff)
downloademacs-1ab3d610aa54e8e109f7383e1ac2cbd129f641ab.tar.gz
emacs-1ab3d610aa54e8e109f7383e1ac2cbd129f641ab.zip
Don't use SAFE_NALLOCA for Lisp_Objects
* src/callproc.c (call_process, create_temp_file): Use SAFE_ALLOCA_LISP instead of SAFE_NALLCA.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 62e6d525499..5dccf0b5dee 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -423,7 +423,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
423 val = Qraw_text; 423 val = Qraw_text;
424 else 424 else
425 { 425 {
426 SAFE_NALLOCA (args2, 1, nargs + 1); 426 SAFE_ALLOCA_LISP (args2, nargs + 1);
427 args2[0] = Qcall_process; 427 args2[0] = Qcall_process;
428 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 428 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
429 coding_systems = Ffind_operation_coding_system (nargs + 1, args2); 429 coding_systems = Ffind_operation_coding_system (nargs + 1, args2);
@@ -743,7 +743,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
743 { 743 {
744 ptrdiff_t i; 744 ptrdiff_t i;
745 745
746 SAFE_NALLOCA (args2, 1, nargs + 1); 746 SAFE_ALLOCA_LISP (args2, nargs + 1);
747 args2[0] = Qcall_process; 747 args2[0] = Qcall_process;
748 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 748 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
749 coding_systems 749 coding_systems
@@ -1035,7 +1035,7 @@ create_temp_file (ptrdiff_t nargs, Lisp_Object *args,
1035 Lisp_Object coding_systems; 1035 Lisp_Object coding_systems;
1036 Lisp_Object *args2; 1036 Lisp_Object *args2;
1037 USE_SAFE_ALLOCA; 1037 USE_SAFE_ALLOCA;
1038 SAFE_NALLOCA (args2, 1, nargs + 1); 1038 SAFE_ALLOCA_LISP (args2, nargs + 1);
1039 args2[0] = Qcall_process_region; 1039 args2[0] = Qcall_process_region;
1040 memcpy (args2 + 1, args, nargs * sizeof *args); 1040 memcpy (args2 + 1, args, nargs * sizeof *args);
1041 coding_systems = Ffind_operation_coding_system (nargs + 1, args2); 1041 coding_systems = Ffind_operation_coding_system (nargs + 1, args2);