gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5492-g16284502


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5492-g16284502
Date: Fri, 26 Jul 2024 04:58:09 -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, gawk-5.3-stable has been updated
       via  16284502ae80a0fdcaa0da2df87d28f4fa86de13 (commit)
      from  f4b9d38fb07def1c9caef1123fc0ffc182de4c33 (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=16284502ae80a0fdcaa0da2df87d28f4fa86de13

commit 16284502ae80a0fdcaa0da2df87d28f4fa86de13
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Fri Jul 26 11:57:37 2024 +0300

    Small fix in re.c.

diff --git a/ChangeLog b/ChangeLog
index 4c0bed37..24d29e4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-07-26         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * re.c (check_bracket_exp): Make the code actually work.
+
 2024-07-20         Tim Rice              <trice@posteo.net>
 
        * io.c (csvscan): Set the sentinel if we found CR-LF.
diff --git a/re.c b/re.c
index 44324b5e..1e1ab34c 100644
--- a/re.c
+++ b/re.c
@@ -683,13 +683,12 @@ again:
                 * [^]] is skipped
                 */
                if (*sp == ']' && sp > sp2) {
-                        if (sp[-1] != '['
-                            && sp[-1] != '\\')
-                                ;
-                        else if ((sp - sp2) >= 2
-                                 && sp[-1] == '^' && sp[-2] == '[')
-                                ;
-                        else
+                       if (sp[-1] != '[' && sp[-1] != '\\')
+                               count--;
+                       else if ((sp - sp2) >= 2
+                               && sp[-1] == '^' && sp[-2] == '[')
+                               ;
+                       else
                                count--;
                }
 

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

Summary of changes:
 ChangeLog |  4 ++++
 re.c      | 13 ++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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