aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorPaul Eggert2016-12-06 21:38:32 -0800
committerPaul Eggert2016-12-06 21:40:38 -0800
commitf0870da2bb5eee848a5561fb58b2ec3a63861052 (patch)
tree04e35afb3918dd711508b706520dedf342e929e7 /src/bytecode.c
parent2a3420d94206a97f094580e06c25af91d5949516 (diff)
downloademacs-f0870da2bb5eee848a5561fb58b2ec3a63861052.tar.gz
emacs-f0870da2bb5eee848a5561fb58b2ec3a63861052.zip
Simplify FUNCTIONP implementation
* src/bytecode.c (exec_byte_code): * src/image.c (parse_image_spec): Prefer FUNCTIONP (x) to !NILP (Ffunctionp (x)). * src/eval.c (FUNCTIONP): Move here ... * src/lisp.h: ... from here. No longer inline, as that bloats the text and does not help speed (at least on my platform). (functionp): Remove this name, since callers use FUNCTIONP.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 868c0148d30..71ecdbf2cc0 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -809,8 +809,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
809 { 809 {
810 Lisp_Object handler = POP; 810 Lisp_Object handler = POP;
811 /* Support for a function here is new in 24.4. */ 811 /* Support for a function here is new in 24.4. */
812 record_unwind_protect ((NILP (Ffunctionp (handler)) 812 record_unwind_protect (FUNCTIONP (handler) ? bcall0 : unwind_body,
813 ? unwind_body : bcall0),
814 handler); 813 handler);
815 NEXT; 814 NEXT;
816 } 815 }