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-5387-g70cfe5a2


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5387-g70cfe5a2
Date: Wed, 18 Oct 2023 03:17:01 -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  70cfe5a210e3d0dd02211595c20c16ff40034cbc (commit)
      from  ed140d8ae8a0fec6d982bf406194b6274a897203 (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=70cfe5a210e3d0dd02211595c20c16ff40034cbc

commit 70cfe5a210e3d0dd02211595c20c16ff40034cbc
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Wed Oct 18 10:16:25 2023 +0300

    Fix matching call and return value.

diff --git a/re.c b/re.c
index 77d2f8a9..3388f117 100644
--- a/re.c
+++ b/re.c
@@ -416,10 +416,14 @@ research(Regexp *rp, char *str, int start,
        rp->pat.not_bol = 0;
 #else
        res = minrx_regnexec(&(rp->mre_pat),
-                       len, str,
-                       need_start ? rp->mre_pat.re_nsub : 0,
+                       len, str + start,
+                       need_start ? rp->mre_pat.re_nsub : 1,
                        need_start ? rp->mre_regs : NULL,
                        minrx_flags);
+       if (res == 0)
+               res = rp->mre_regs[0].rm_so;
+       else
+               res = -1;
 #endif
        return res;
 }

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

Summary of changes:
 re.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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