1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00
guile/module
Neil Jerram 1e2cc0b630 Simplify getopt-long handling of option values, esp with multiple occurrences
Basically, accumulate values in the `process-options' loop variables,
instead of using set-option-spec-value!

* module/ice-9/getopt-long.scm (option-spec): Delete the `value' slot.

  (process-options): Delete `val!loop' and just use `loop' everywhere
  instead.  When adding an option spec to `found', add the
  corresponding value too; hence `found' becomes an alist, where it
  was previously a list of specs.

  (getopt-long): Use assq-ref to get values out of `found'.  Remove
  unhittable error condition for detecting an option that requires an
  explicit value, where a value wasn't supplied.  This condition is
  actually caught and handled in `process-options'.  Rewrite the end
  of the procedure much more simply.
2011-05-26 17:58:18 +01:00
..
ice-9 Simplify getopt-long handling of option values, esp with multiple occurrences 2011-05-26 17:58:18 +01:00
language fix some duplication in object tables 2011-05-08 22:55:05 +02:00
oop (syntax foo) -> #'foo in goops 2011-05-21 13:13:58 +02:00
rnrs Improve R6RS conformance wrt. conditions in the I/O libraries 2011-05-14 19:29:26 +02:00
scripts Remove statements about scripts/* that are no longer true 2011-03-25 19:45:14 +00:00
srfi fix srfi-1 map-in-order definition 2011-05-07 11:31:38 +02:00
sxml sxml->xml fix 2010-12-02 22:24:26 +01:00
system ignore SIGPIPE in (system repl server) 2011-04-11 10:13:48 +02:00
texinfo fix stexi->html double translation 2011-03-26 13:33:40 +01:00
web web server more assiduous about closing ports 2011-02-24 11:10:49 +01:00
Makefile.am add (ice-9 command-line) 2011-04-14 16:06:07 +02:00
rnrs.scm Enhance transcoder-related functionality of `(rnrs io ports)' 2011-03-13 23:14:43 +01:00
statprof.scm add gcprof 2011-05-05 11:43:12 +02:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00