summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-10 07:58:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-10 07:58:00 -0700
commit6aa141253aa8a9c0b8f93b38ac225eacfb93566c (patch)
tree9cbc351c56f4653333ba47293b56b1e3226dcd13 /lisplib.c
parent35c830aa764e6e456530ed9d18ff5a686d10d96c (diff)
downloadtxr-6aa141253aa8a9c0b8f93b38ac225eacfb93566c.tar.gz
txr-6aa141253aa8a9c0b8f93b38ac225eacfb93566c.tar.bz2
txr-6aa141253aa8a9c0b8f93b38ac225eacfb93566c.zip
New macro: with-objects.
* lisplib.c (with_resources_set_entries): "with-objects" added to name table. * share/txr/stdlib/with-resources.tl (with-objects): New macro. * txr.1: Documented with-objects. Added note to :fini specifier of defstruct pointing to call-finalizers and with-objects.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisplib.c b/lisplib.c
index 122256f3..81240da3 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -130,7 +130,11 @@ static val txr_case_instantiate(val set_fun)
static val with_resources_set_entries(val dlt, val fun)
{
- val name[] = { lit("with-resources"), nil };
+ val name[] = {
+ lit("with-resources"),
+ lit("with-objects"),
+ nil
+ };
set_dlt_entries(dlt, name, fun);
return nil;
}