diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-10 07:58:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-10 07:58:00 -0700 |
commit | 6aa141253aa8a9c0b8f93b38ac225eacfb93566c (patch) | |
tree | 9cbc351c56f4653333ba47293b56b1e3226dcd13 /lisplib.c | |
parent | 35c830aa764e6e456530ed9d18ff5a686d10d96c (diff) | |
download | txr-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |