summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-10-21 06:56:53 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-10-21 06:56:53 -0700
commitf9d4303ea0875da3feba4b5eb0dd372b676b8652 (patch)
tree2b180a51b214f57562ab4b82a38538b174137842 /eval.c
parent81f7dcca6528252c1f0a57d3b5581c628efa4bf1 (diff)
downloadtxr-f9d4303ea0875da3feba4b5eb0dd372b676b8652.tar.gz
txr-f9d4303ea0875da3feba4b5eb0dd372b676b8652.tar.bz2
txr-f9d4303ea0875da3feba4b5eb0dd372b676b8652.zip
* eval.c (eval_init): Register notf intrinsic function.
* lib.c (do_not): New static function. (notf): New function. * lib.h (notf): Declared. * txr.1: Documented notf. * share/txr/stdlib/txr-case.txr (bindable): Eliminated. (txr-if): Use functional expression, taking advantage of notf. * txr.vim: Regenerated.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index c4b5cb78..94736bdb 100644
--- a/eval.c
+++ b/eval.c
@@ -3711,6 +3711,7 @@ void eval_init(void)
reg_fun(intern(lit("juxt"), user_package), func_n0v(juxtv));
reg_fun(intern(lit("andf"), user_package), func_n0v(andv));
reg_fun(intern(lit("orf"), user_package), func_n0v(orv));
+ reg_fun(intern(lit("notf"), user_package), func_n1(notf));
reg_fun(intern(lit("iff"), user_package), func_n3o(iff, 2));
reg_fun(intern(lit("iffi"), user_package), func_n3o(iffi, 2));
reg_fun(intern(lit("if"), user_package), func_n3o(if_fun, 2));