summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-24 20:14:17 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-24 20:14:17 -0800
commit40768ab0200b1017e0cb9e1f799fced830074519 (patch)
treefdfb767b574d1d6cd07fb882c82c8ff67d3453ad /lib.h
parent37cfe995711604880217b1e07ee1274819a2b926 (diff)
downloadtxr-40768ab0200b1017e0cb9e1f799fced830074519.tar.gz
txr-40768ab0200b1017e0cb9e1f799fced830074519.tar.bz2
txr-40768ab0200b1017e0cb9e1f799fced830074519.zip
bracket: new function.
* eval.c (eval_init): Register bracket intrinsic. * lib.c (bracket): New function. * lib.h (bracket): Declared. * txr.1: Documented.
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 c426fe64..cb1b2ef6 100644
--- a/lib.h
+++ b/lib.h
@@ -740,6 +740,7 @@ val minv(val first, struct args *rest);
val maxl(val first, val rest);
val minl(val first, val rest);
val clamp(val low, val high, val num);
+val bracket(val larg, struct args *args);
val expt(val base, val exp);
val exptv(struct args *nlist);
val exptmod(val base, val exp, val mod);