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-5679-g67cc5937


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5679-g67cc5937
Date: Mon, 5 Aug 2024 13:34:49 -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  67cc593789be21556410430713820b7dd195e092 (commit)
      from  fdab98b3ebf90e779db2bd0fded67c0fda667ec3 (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=67cc593789be21556410430713820b7dd195e092

commit 67cc593789be21556410430713820b7dd195e092
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Aug 5 20:34:25 2024 +0300

    Small changes in minrx.cpp.

diff --git a/support/ChangeLog b/support/ChangeLog
index 77a3a541..b50baebe 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,7 @@
+2024-08-05         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * minrx.cpp: Small changes in consultation with Mike.
+
 2024-07-28         Arnold D. Robbins     <arnold@skeeve.com>
 
        * minrx.h, minrx.cpp: Updated.
diff --git a/support/minrx.cpp b/support/minrx.cpp
index e970e7e4..9f57950d 100644
--- a/support/minrx.cpp
+++ b/support/minrx.cpp
@@ -265,9 +265,11 @@ public:
                wchar_t wct = L'\0';
                if ((cp += len) != ep) {
                        auto n = mbrtowc(&wct, cp, ep - cp, &mbs);
-                       if (n == 0 || n == (std::size_t) -1 || n == 
(std::size_t) -2)
+                       if (n == 0 || n == (std::size_t) -1 || n == 
(std::size_t) -2) {
                                len = 1;
-                       else
+                               if (wct == L'\0')
+                                       wct = *cp & 0xff;       // or some 
other magic or 0x80000000
+                       } else
                                len = n;
                        wch = wct;
                } else {
@@ -316,6 +318,8 @@ struct CSet {
        }
        CSet &set(WChar wc) { return set(wc, wc); }
        bool test(WChar wc) const {
+               if (inverted && wc < 0)
+                       return false;
                auto i = ranges.lower_bound(Range(wc, wc));
                return inverted ^ (i != ranges.end() && wc >= i->min && wc <= 
i->max);
        }

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

Summary of changes:
 support/ChangeLog | 4 ++++
 support/minrx.cpp | 8 ++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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