gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5672-g8a070af4


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5672-g8a070af4
Date: Mon, 29 Jul 2024 00:18:13 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/minrx has been updated
       via  8a070af4920680e4d096cc493c5826b6cb5920f6 (commit)
      from  1edcc78cf777df407fe2f30ca5a28ac756bb2fef (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=8a070af4920680e4d096cc493c5826b6cb5920f6

commit 8a070af4920680e4d096cc493c5826b6cb5920f6
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Jul 29 07:17:57 2024 +0300

    Bug fix in re.c.

diff --git a/ChangeLog b/ChangeLog
index 5c176526..4c4c492f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-07-29         Mike Haertel                 <mike@ducky.net>
+
+       * re.c (re_numsubpats): For MinRX, return re_nsub + 1.
+
 2024-07-28         Arnold D. Robbins     <arnold@skeeve.com>
 
        * TODO: Updated.
diff --git a/re.c b/re.c
index e580f3f4..ad7e854b 100644
--- a/re.c
+++ b/re.c
@@ -859,5 +859,5 @@ re_numsubpats(Regexp *rp, const char *s)
        if (use_gnu_matchers)
                return rp->regs.num_regs;
        else
-               return rp->mre_pat.re_nsub;
+               return rp->mre_pat.re_nsub + 1;
 }

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 4 ++++
 re.c      | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]