summaryrefslogtreecommitdiff
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@Penguin.CS.UCLA.EDU>2016-12-06 21:38:32 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-12-06 21:40:38 -0800
commitf0870da2bb5eee848a5561fb58b2ec3a63861052 (patch)
tree04e35afb3918dd711508b706520dedf342e929e7 /src/xwidget.c
parent2a3420d94206a97f094580e06c25af91d5949516 (diff)
downloademacs-f0870da2bb5eee848a5561fb58b2ec3a63861052.tar.gz
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/xwidget.c')
-rw-r--r--src/xwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index d1f9540e11f..62df6657e9f 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -711,7 +711,7 @@ argument procedure FUN.*/)
{
WEBKIT_FN_INIT ();
CHECK_STRING (script);
- if (!NILP (fun) && (!FUNCTIONP (fun)))
+ if (!NILP (fun) && !FUNCTIONP (fun))
wrong_type_argument (Qinvalid_function, fun);
void *callback = (FUNCTIONP (fun)) ?