summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-11-29 06:32:22 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-11-29 06:32:22 -0800
commitaef42ed8c03dc05e4e51b068d197c9c4cfd62fa3 (patch)
treef9ddcaa78f4fc58bc44781bacef73d12251973c2 /lisplib.c
parent9bce2edc80960948b4d33a4931395b28cd5931d6 (diff)
downloadtxr-aef42ed8c03dc05e4e51b068d197c9c4cfd62fa3.tar.gz
txr-aef42ed8c03dc05e4e51b068d197c9c4cfd62fa3.tar.bz2
txr-aef42ed8c03dc05e4e51b068d197c9c4cfd62fa3.zip
getopts: new define-option-struct macro.
This provides more streamlined option processing. * lisplib.c (getopts_set_entries): Add auto-load entry for define-option-struct. * share/txr/stdlib/getopts.tl (define-option-struct): New macro. * txr.1: Documented.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisplib.c b/lisplib.c
index e3487496..30b2152a 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -473,7 +473,7 @@ static val getopts_set_entries(val dlt, val fun)
{
val name[] = {
lit("opt-desc"), lit("opts"),
- lit("opt"), lit("getopts"), lit("opthelp"),
+ lit("opt"), lit("getopts"), lit("opthelp"), lit("define-option-struct"),
nil
};
val name_noload[] = {