summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-01-25 08:39:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-01-25 08:39:15 -0800
commit4ec024cdc9544c244cbd8b630e8f631fc05c6075 (patch)
tree734ab15e190ec426499c25cc00a79045b92d2fc2 /lib.h
parent6c9893d4790f1a27c900b2d84a3532ae7c402463 (diff)
downloadtxr-4ec024cdc9544c244cbd8b630e8f631fc05c6075.tar.gz
txr-4ec024cdc9544c244cbd8b630e8f631fc05c6075.tar.bz2
txr-4ec024cdc9544c244cbd8b630e8f631fc05c6075.zip
* eval.c (eval_init): Register dupl and swap_12_21 as
the dup and flip intrinsics. * lib.c (do_dup): New static function. (dupl): New function. * lib.h (dupl): Declared. * txr.1: Documented dup and flip.
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 378973e6..cd753e52 100644
--- a/lib.h
+++ b/lib.h
@@ -758,6 +758,7 @@ 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 dupl(val fun);
val swap_12_21(val fun);
val vector(val length, val initval);
val vectorp(val vec);