From f4c54fbad69d1181057fe5025f537802b9eec610 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 3 Feb 2022 23:16:23 -0800 Subject: getopts: break up help into three functions. * lisplib.c (getopts_set_entries): Autoload for opthelp-conventions and opthelp-types. * stdlib/getopts.tl (opthelp): Remove incnotes parameter. Entirely trim out the code for notes about conventions and use of types. (opthel-conventions, opthelp-types): New functions. (option-base opthelp-conventions, option-base opthelp-types): New methods. * txr.1: Documented. * stdlib/doc-syms.tl: Updated. --- lisplib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisplib.c') diff --git a/lisplib.c b/lisplib.c index f841f4c7..0f48b82e 100644 --- a/lisplib.c +++ b/lisplib.c @@ -483,7 +483,8 @@ static val getopts_set_entries(val dlt, val fun) { val name[] = { lit("opt-desc"), lit("opts"), - lit("opt"), lit("getopts"), lit("opthelp"), lit("define-option-struct"), + lit("opt"), lit("getopts"), lit("opthelp"), lit("opthelp-conventions"), + lit("opthelp-types"), lit("define-option-struct"), nil }; val name_noload[] = { -- cgit v1.2.3