aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/eval.c b/src/eval.c
index e649c152a5d..b98b224e622 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2535,15 +2535,14 @@ run_hook (Lisp_Object hook)
2535void 2535void
2536run_hook_with_args_2 (Lisp_Object hook, Lisp_Object arg1, Lisp_Object arg2) 2536run_hook_with_args_2 (Lisp_Object hook, Lisp_Object arg1, Lisp_Object arg2)
2537{ 2537{
2538 Frun_hook_with_args (3, ((Lisp_Object []) { hook, arg1, arg2 })); 2538 CALLN (Frun_hook_with_args, hook, arg1, arg2);
2539} 2539}
2540 2540
2541/* Apply fn to arg. */ 2541/* Apply fn to arg. */
2542Lisp_Object 2542Lisp_Object
2543apply1 (Lisp_Object fn, Lisp_Object arg) 2543apply1 (Lisp_Object fn, Lisp_Object arg)
2544{ 2544{
2545 return (NILP (arg) ? Ffuncall (1, &fn) 2545 return NILP (arg) ? Ffuncall (1, &fn) : CALLN (Fapply, fn, arg);
2546 : Fapply (2, ((Lisp_Object []) { fn, arg })));
2547} 2546}
2548 2547
2549/* Call function fn on no arguments. */ 2548/* Call function fn on no arguments. */
@@ -2558,7 +2557,7 @@ call0 (Lisp_Object fn)
2558Lisp_Object 2557Lisp_Object
2559call1 (Lisp_Object fn, Lisp_Object arg1) 2558call1 (Lisp_Object fn, Lisp_Object arg1)
2560{ 2559{
2561 return Ffuncall (2, ((Lisp_Object []) { fn, arg1 })); 2560 return CALLN (Ffuncall, fn, arg1);
2562} 2561}
2563 2562
2564/* Call function fn with 2 arguments arg1, arg2. */ 2563/* Call function fn with 2 arguments arg1, arg2. */
@@ -2566,7 +2565,7 @@ call1 (Lisp_Object fn, Lisp_Object arg1)
2566Lisp_Object 2565Lisp_Object
2567call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2) 2566call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2)
2568{ 2567{
2569 return Ffuncall (3, ((Lisp_Object []) { fn, arg1, arg2 })); 2568 return CALLN (Ffuncall, fn, arg1, arg2);
2570} 2569}
2571 2570
2572/* Call function fn with 3 arguments arg1, arg2, arg3. */ 2571/* Call function fn with 3 arguments arg1, arg2, arg3. */
@@ -2574,7 +2573,7 @@ call2 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2)
2574Lisp_Object 2573Lisp_Object
2575call3 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3) 2574call3 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3)
2576{ 2575{
2577 return Ffuncall (4, ((Lisp_Object []) { fn, arg1, arg2, arg3 })); 2576 return CALLN (Ffuncall, fn, arg1, arg2, arg3);
2578} 2577}
2579 2578
2580/* Call function fn with 4 arguments arg1, arg2, arg3, arg4. */ 2579/* Call function fn with 4 arguments arg1, arg2, arg3, arg4. */
@@ -2583,7 +2582,7 @@ Lisp_Object
2583call4 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2582call4 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3,
2584 Lisp_Object arg4) 2583 Lisp_Object arg4)
2585{ 2584{
2586 return Ffuncall (5, ((Lisp_Object []) { fn, arg1, arg2, arg3, arg4 })); 2585 return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4);
2587} 2586}
2588 2587
2589/* Call function fn with 5 arguments arg1, arg2, arg3, arg4, arg5. */ 2588/* Call function fn with 5 arguments arg1, arg2, arg3, arg4, arg5. */
@@ -2592,7 +2591,7 @@ Lisp_Object
2592call5 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2591call5 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3,
2593 Lisp_Object arg4, Lisp_Object arg5) 2592 Lisp_Object arg4, Lisp_Object arg5)
2594{ 2593{
2595 return Ffuncall (6, ((Lisp_Object []) { fn, arg1, arg2, arg3, arg4, arg5 })); 2594 return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4, arg5);
2596} 2595}
2597 2596
2598/* Call function fn with 6 arguments arg1, arg2, arg3, arg4, arg5, arg6. */ 2597/* Call function fn with 6 arguments arg1, arg2, arg3, arg4, arg5, arg6. */
@@ -2601,8 +2600,7 @@ Lisp_Object
2601call6 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2600call6 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3,
2602 Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6) 2601 Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6)
2603{ 2602{
2604 return Ffuncall (7, ((Lisp_Object []) 2603 return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4, arg5, arg6);
2605 { fn, arg1, arg2, arg3, arg4, arg5, arg6 }));
2606} 2604}
2607 2605
2608/* Call function fn with 7 arguments arg1, arg2, arg3, arg4, arg5, arg6, arg7. */ 2606/* Call function fn with 7 arguments arg1, arg2, arg3, arg4, arg5, arg6, arg7. */
@@ -2611,8 +2609,7 @@ Lisp_Object
2611call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, 2609call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3,
2612 Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7) 2610 Lisp_Object arg4, Lisp_Object arg5, Lisp_Object arg6, Lisp_Object arg7)
2613{ 2611{
2614 return Ffuncall (8, ((Lisp_Object []) 2612 return CALLN (Ffuncall, fn, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
2615 { fn, arg1, arg2, arg3, arg4, arg5, arg6, arg7 }));
2616} 2613}
2617 2614
2618/* The caller should GCPRO all the elements of ARGS. */ 2615/* The caller should GCPRO all the elements of ARGS. */