diff options
author | Po Lu <luangruo@yahoo.com> | 2024-01-06 15:28:14 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2024-01-06 15:28:14 +0800 |
commit | 657275529e31226bbc6c92eb7f7af887474a0bb8 (patch) | |
tree | 1a2091dfb27b9932c6e17a18f458f52b4c1ecc4d /src/eval.c | |
parent | 2f59052602e71fb818dd5d671be119793864e712 (diff) | |
download | emacs-657275529e31226bbc6c92eb7f7af887474a0bb8.tar.gz |
Revert "Add new `swap` macro and use it"
typeof is an extension which does not exist in Standard C, so macros
using it are unsuitable for inclusion in Emacs.
This reverts commit 37889523278fe65733938fb11c3701898309961c.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index 6a866d6cc32..94f6d8e31f8 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2794,9 +2794,12 @@ usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */) static Lisp_Object run_hook_wrapped_funcall (ptrdiff_t nargs, Lisp_Object *args) { - swap (args[0], args[1]); - Lisp_Object ret = Ffuncall (nargs, args); - swap (args[1], args[0]); + Lisp_Object tmp = args[0], ret; + args[0] = args[1]; + args[1] = tmp; + ret = Ffuncall (nargs, args); + args[1] = args[0]; + args[0] = tmp; return ret; } |