diff options
| author | Jim Blandy | 1993-06-10 05:21:01 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-10 05:21:01 +0000 |
| commit | a5a44b91052c1b841c8aeccf4c563242072a3ad8 (patch) | |
| tree | f8a362ac7ba2a133626037daab6eed7925bf5ad3 /src/eval.c | |
| parent | 5ac622b20185fdde788fe9786b7ab7edfc687b69 (diff) | |
| download | emacs-a5a44b91052c1b841c8aeccf4c563242072a3ad8.tar.gz emacs-a5a44b91052c1b841c8aeccf4c563242072a3ad8.zip | |
* fileio.c (Frename_file): Pass all arguments to the file name handler.
* eval.c (call4): New function.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 2812c79e0d3..476f663f09f 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1803,6 +1803,30 @@ call3 (fn, arg, arg1, arg2) | |||
| 1803 | #endif /* not NO_ARG_ARRAY */ | 1803 | #endif /* not NO_ARG_ARRAY */ |
| 1804 | } | 1804 | } |
| 1805 | 1805 | ||
| 1806 | /* Call function fn with arguments arg, arg1, arg2, arg3 */ | ||
| 1807 | /* ARGSUSED */ | ||
| 1808 | Lisp_Object | ||
| 1809 | call4 (fn, arg, arg1, arg2, arg3) | ||
| 1810 | Lisp_Object fn, arg, arg1, arg2, arg3; | ||
| 1811 | { | ||
| 1812 | struct gcpro gcpro1; | ||
| 1813 | #ifdef NO_ARG_ARRAY | ||
| 1814 | Lisp_Object args[5]; | ||
| 1815 | args[0] = fn; | ||
| 1816 | args[1] = arg; | ||
| 1817 | args[2] = arg1; | ||
| 1818 | args[3] = arg2; | ||
| 1819 | args[4] = arg3; | ||
| 1820 | GCPRO1 (args[0]); | ||
| 1821 | gcpro1.nvars = 5; | ||
| 1822 | RETURN_UNGCPRO (Ffuncall (5, args)); | ||
| 1823 | #else /* not NO_ARG_ARRAY */ | ||
| 1824 | GCPRO1 (fn); | ||
| 1825 | gcpro1.nvars = 5; | ||
| 1826 | RETURN_UNGCPRO (Ffuncall (5, &fn)); | ||
| 1827 | #endif /* not NO_ARG_ARRAY */ | ||
| 1828 | } | ||
| 1829 | |||
| 1806 | DEFUN ("funcall", Ffuncall, Sfuncall, 1, MANY, 0, | 1830 | DEFUN ("funcall", Ffuncall, Sfuncall, 1, MANY, 0, |
| 1807 | "Call first argument as a function, passing remaining arguments to it.\n\ | 1831 | "Call first argument as a function, passing remaining arguments to it.\n\ |
| 1808 | Thus, (funcall 'cons 'x 'y) returns (x . y).") | 1832 | Thus, (funcall 'cons 'x 'y) returns (x . y).") |