diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-11-29 06:32:22 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-11-29 06:32:22 -0800 |
commit | aef42ed8c03dc05e4e51b068d197c9c4cfd62fa3 (patch) | |
tree | f9ddcaa78f4fc58bc44781bacef73d12251973c2 /lisplib.c | |
parent | 9bce2edc80960948b4d33a4931395b28cd5931d6 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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[] = { |