summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-05-15 06:35:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-05-15 06:35:29 -0700
commit63d18cb2cb30c20c9bbf00501b253bbc1cee5011 (patch)
tree30e796eb53d9de128d0d77e4cad9ca7e67b22340 /lisplib.c
parent9c8a8fd762d9c199da1fe0cf9f9f8df24e8314dc (diff)
downloadtxr-63d18cb2cb30c20c9bbf00501b253bbc1cee5011.tar.gz
txr-63d18cb2cb30c20c9bbf00501b253bbc1cee5011.tar.bz2
txr-63d18cb2cb30c20c9bbf00501b253bbc1cee5011.zip
oop: new new* and lnew* macros.
* lisplib.c (struct_set_entries): Add autoload entries for new* and lnew* symbols. * share/txr/stdlib/struct.tl (sys:new-type, sys:new-expander): New functions. (new, lnew): Macros now implemented using sys:new-expander. (new*, lnew*): New macros. * txr.1: Documented.
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 b0f0fcc2..d2d82b84 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -209,6 +209,7 @@ static val struct_set_entries(val dlt, val fun)
};
val name[] = {
lit("defstruct"), lit("qref"), lit("uref"), lit("new"), lit("lnew"),
+ lit("new*"), lit("lnew*"),
lit("meth"), lit("umeth"), lit("usl"), lit("defmeth"), lit("rslot"), nil
};