summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-30 21:50:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-30 21:50:32 -0700
commitd38e9a82b7bdff9f990ff5c5650366890f16cfe8 (patch)
tree2a18ceca967bb988f6da6b1cc9b336dd25b40d22 /lisplib.c
parentff633e81a1efd932018daa1f887a77d263e4e315 (diff)
downloadtxr-d38e9a82b7bdff9f990ff5c5650366890f16cfe8.tar.gz
txr-d38e9a82b7bdff9f990ff5c5650366890f16cfe8.tar.bz2
txr-d38e9a82b7bdff9f990ff5c5650366890f16cfe8.zip
Define suspend operator.
* lisplib.c (yield_set_entries): Added "suspend" to end of name. * share/txr/stdlib/yield.tl (suspend): New macro. * txr.1: Documented suspend. Replaced subtly incorect shift/reset implementation example with suspend implementation.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisplib.c b/lisplib.c
index 47ccc7b5..a8de4a36 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -260,6 +260,7 @@ static val yield_set_entries(val dlt, val fun)
{
val name[] = {
lit("obtain"), lit("obtain-block"), lit("yield-from"), lit("yield"),
+ lit("suspend"),
nil
};
set_dlt_entries(dlt, name, fun);