summaryrefslogtreecommitdiffstats
path: root/lib.h
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 /lib.h
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 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 0ed408a0..36e2db02 100644
--- a/lib.h
+++ b/lib.h
@@ -725,6 +725,7 @@ val andf(val first_fun, ...);
val andv(val funlist);
val orf(val first_fun, ...);
val orv(val funlist);
+val notf(val fun);
val iff(val condfun, val thenfun, val elsefun);
val iffi(val condfun, val thenfun, val elsefun);
val swap_12_21(val fun);