bug#32154: This issue is now dealt with by #42669

2020-08-02 Thread Dale Mellor

bug#40719: Patch set superseded by 42669

2020-08-02 Thread Dale Mellor

bug#42669: [PATCH 4/4 (v2)] (ice-9 getopt-long): update commentary and doc-strings

2020-08-02 Thread Dale Mellor
McManus +;;; Rewritten by Thien-Thi Nguyen +;;; Rewritten by Dale Mellor 2020-04-14 ;;; Commentary: ;;; This module implements some complex command line option parsing, in -;;; the spirit of the GNU C library function `getopt_long'. Both long +;;; the spirit of the GNU C li

bug#42669: [PATCH 3/4 (v2)] (ice-9 getopt-long): substantially re-written to pass all the new tests

2020-08-02 Thread Dale Mellor
All of the original tests also still pass. Also the entire guile build actually depends on the correct functioning of this module, so we can be quite confident that nothing has been broken. * module/ice-9/getopt-long.scm: Substantially re-written. --- module/ice-9/getopt-long.scm | 459 +

bug#42669: [PATCH 2/4 (v2)] test *broken*: augmented tests of (ice-9 getopt-long)

2020-08-02 Thread Dale Mellor
quot;--=" @@ -295,9 +303,40 @@ (pass-if "normal 2" (test8 "-ab" "bang" "-c" "couth")) (pass-if "normal 3" (test8 "-ac" "couth" "-b" "bang")) - (pass-if-fatal-exception "bad ordering ca

bug#42669: [PATCH 1/4] test: augment testing of (ice-9 getopt-long) module

2020-08-02 Thread Dale Mellor
@@ License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +;;; Author: Thien-Thi Nguyen --- August 2001 +;;; Dale Mellor --- April 2020 + + (use-modules (test-suite lib) (ice-9

bug#42669: [PATCH 0/4] GNU Mcron and the (ice-9 getopt-long) module

2020-08-02 Thread Dale Mellor
/Mcron/ is a GNU package which runs unattended jobs in the operating system at dynamically computed times; it is 99% Guile but currently shrouded in a thin veneer of C code for historical reasons, which have by now vanished. The Guile /getopt-long/ module parses a command lineʼs arguments for opti

bug#41127: GIT and GUIX downloads available

2020-06-07 Thread Dale Mellor
For information, all these patches are applied in the GIT repository and GUIX channel described at https://rdmp.org/dmbcs/guile#download.

bug#32154: This patch breaks tests and is irrelevant now

2020-05-18 Thread Dale Mellor
Note that this patch breaks an existing test (since 2001), namely (option-ref (getopt-long (list "prog" "-f4") '((foo (value optional) (single-char #\f)) (bar))) 'foo #f) bails out with prog: no such opti

bug#40719: [PATCH 3/4] (ice-9 getopt-long): substantially re-written to pass all the new tests

2020-05-07 Thread Dale Mellor
All of the original tests also still pass. Also the entire guile build actually depends on the correct functioning of this module, so we can be quite confident that nothing has been broken. * module/ice-9/getopt-long.scm: Substantially re-written. --- module/ice-9/getopt-long.scm | 476 +++

bug#40719: [PATCH 4/4] (ice-9 getopt-long): update commentary and doc-strings

2020-05-07 Thread Dale Mellor
McManus +;;; Rewritten by Thien-Thi Nguyen +;;; Rewritten by Dale Mellor 2020-04-14 ;;; Commentary: ;;; This module implements some complex command line option parsing, in -;;; the spirit of the GNU C library function `getopt_long'. Both long +;;; the spirit of the GNU C li

bug#40719: [PATCH 2/4] test *broken*: augmented tests of (ice-9 getopt-long)

2020-05-07 Thread Dale Mellor
x27;((apples(single-char #\a)) - (blimps(single-char #\b) (value #t)) - (catalexis (single-char #\c) (value #t + (blimps(single-char #\b) (value #t)) + (catalexis (single-char #\c) (valu

bug#40719: [PATCH 1/4] test: augment testing of (ice-9 getopt-long) module

2020-05-07 Thread Dale Mellor
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +;;; Author: Thien-Thi Nguyen --- August 2001 +;;; Dale Mellor <> --- April 2020 + + (use-modules (test-suite lib) (ice-9 getopt-long) (ice-9 regex)) @@ -49,6 +52,31 @@ (deferr option-must-be-spe

bug#41127: [PATCH 2/2] doc: Explain the *command-line-processor* module in texinfo.

2020-05-07 Thread Dale Mellor
* doc/ref/Makefile.am: introduce mod-command-line-processor.texi * doc/ref/mod-command-line-processor.texi: new file * doc/ref/guile.texi: changed flow of docs * doc/ref/mod-getopt-long.texi: changed flow of docs * doc/ref/srfi-modules.texi: changed flow of docs --- doc/ref/Makefile.am

bug#41127: [PATCH 1/2] Introduce (ice-9 command-line-processor) module.

2020-05-07 Thread Dale Mellor
Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301 USA + +;;; Author: Dale MellorMay, 2020 + +;;; Commentary: + +;;; Where the Guile (ice-9 getopt-long) module, modelled after the GNU C +;;; libraryʼs ‘getopt_long’ function, allows an application to

bug#41126: [PATCH] doc: Added very minimal doc strings to (srfi srfi-9 gnu).

2020-05-07 Thread Dale Mellor
* module/srfi/srfi-9/gnu.scm: Added some doc strings. --- module/srfi/srfi-9/gnu.scm | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/srfi/srfi-9/gnu.scm b/module/srfi/srfi-9/gnu.scm index 219bcdebb..0b9024e75 100644 --- a/module/srfi/srfi-9/gnu.scm +++ b/module/

bug#41127: [PATCH 0/2] New (ice-9 command-line-processor).

2020-05-07 Thread Dale Mellor
Modelled after GNU libc's argp command-line parser, and building on (ice-9 getopt-long), this new module allows a one-stop specification of how the command line options should work, (process-command-line (command-line) application "my-app" version "1.0" usage

bug#40723: [PATCH 4/4] (ice-9 getopt-long): update commentary and doc-strings

2020-04-19 Thread Dale Mellor
>From 6acbbb37a2f9a1968fcdbc8f3be3c805d28ef901 Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Sun, 19 Apr 2020 18:01:06 +0100 Subject: [PATCH 4/4] (ice-9 getopt-long): update commentary and doc-strings Emphasise importance of predicate part of specification of options with optional val

bug#40720: [PATCH 3/4] (ice-9 getopt-long): substantially re-written to pass all the new tests

2020-04-19 Thread Dale Mellor
>From 7d169c24c0fdbbaa56c646985dd2861b12e2bca5 Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Sun, 19 Apr 2020 18:00:48 +0100 Subject: [PATCH 3/4] (ice-9 getopt-long): substantially re-written to pass all the new tests All of the original tests also still pass. Also the entire guile bu

bug#40721: [PATCH 1/4] test: augment testing of (ice-9 getopt-long) module

2020-04-19 Thread Dale Mellor
>From b08d1cc7dc03d5e69dfd1f93e50617b81230b5e3 Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Sun, 19 Apr 2020 18:00:04 +0100 Subject: [PATCH 1/4] test: augment testing of (ice-9 getopt-long) module Adding some 28 new tests which explore some undefined (or at least implied) behaviour of

bug#40722: [PATCH 2/4] test *broken*: augmented tests of (ice-9 getopt-long)

2020-04-19 Thread Dale Mellor
>From 57da5a3ae02008c4c66da21055749e51342fdd7e Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Sun, 19 Apr 2020 18:00:33 +0100 Subject: [PATCH 2/4] test *broken*: augmented tests of (ice-9 getopt-long) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8

bug#40719: [PATCH 0/4] GNU Mcron and the (ice-9 getopt-long) module

2020-04-19 Thread Dale Mellor
/Mcron/ is a GNU package which runs unattended jobs in the operating system at dynamically computed times; it is 99% Guile but currently shrouded in a thin veneer of C code for historical reasons, which have by now vanished. The Guile /getopt-long/ module parses a command lineʼs arguments for opti

bug#15411: libguile initialization inside a pthread segfaults

2013-09-18 Thread Dale Mellor
The following program fails; it produces the session shown below. Any help greatly appreciated. Dale =PROGRAM== #include static void *do_guile (void *) { for (;;) ; return nullptr; } static void *run_thread (void *) { re