gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, master, updated. gawk-4.1.0-3886-gbcaf861


From: Arnold Robbins
Subject: [SCM] gawk branch, master, updated. gawk-4.1.0-3886-gbcaf861
Date: Tue, 28 Jan 2020 00:40:40 -0500 (EST)

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, master has been updated
       via  bcaf861a58e63aaf82aa74abcc92ac1d81b040a6 (commit)
       via  391b5daeb5371374d7ac3d88cadf1f46db935005 (commit)
      from  a63a80f6e0f734c235fc64ee81cd155bcf0730ca (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=bcaf861a58e63aaf82aa74abcc92ac1d81b040a6

commit bcaf861a58e63aaf82aa74abcc92ac1d81b040a6
Merge: 391b5da a63a80f
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Jan 28 07:39:59 2020 +0200

    Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gawk


http://git.sv.gnu.org/cgit/gawk.git/commit/?id=391b5daeb5371374d7ac3d88cadf1f46db935005

commit 391b5daeb5371374d7ac3d88cadf1f46db935005
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Jan 28 07:39:24 2020 +0200

    Update (and we hope fix) regex_internal.h.

diff --git a/support/ChangeLog b/support/ChangeLog
index ccb217c..bb275db 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-28         Arnold D. Robbins     <address@hidden>
+
+       * regex_internal.h: Update from GNULIB. Hopefully fixes
+       non-GCC issues.
+
 2020-01-24         Arnold D. Robbins     <address@hidden>
 
        * dfa.h, dfa.c: Update copyright years.
diff --git a/support/regex_internal.h b/support/regex_internal.h
index 6d436fd..8c42586 100644
--- a/support/regex_internal.h
+++ b/support/regex_internal.h
@@ -142,7 +142,22 @@
 # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
 #endif
 #ifndef ULONG_WIDTH
-# define ULONG_WIDTH (CHAR_BIT * sizeof (unsigned long int))
+# define ULONG_WIDTH REGEX_UINTEGER_WIDTH (ULONG_MAX)
+/* The number of usable bits in an unsigned integer type with maximum
+   value MAX, as an int expression suitable in #if.  Cover all known
+   practical hosts.  This implementation exploits the fact that MAX is
+   1 less than a power of 2, and merely counts the number of 1 bits in
+   MAX; "COBn" means "count the number of 1 bits in the low-order n bits".  */
+# define REGEX_UINTEGER_WIDTH(max) REGEX_COB128 (max)
+# define REGEX_COB128(n) (REGEX_COB64 ((n) >> 31 >> 31 >> 2) + REGEX_COB64 (n))
+# define REGEX_COB64(n) (REGEX_COB32 ((n) >> 31 >> 1) + REGEX_COB32 (n))
+# define REGEX_COB32(n) (REGEX_COB16 ((n) >> 16) + REGEX_COB16 (n))
+# define REGEX_COB16(n) (REGEX_COB8 ((n) >> 8) + REGEX_COB8 (n))
+# define REGEX_COB8(n) (REGEX_COB4 ((n) >> 4) + REGEX_COB4 (n))
+# define REGEX_COB4(n) (!!((n) & 8) + !!((n) & 4) + !!((n) & 2) + ((n) & 1))
+# if ULONG_MAX / 2 + 1 != 1ul << (ULONG_WIDTH - 1)
+#  error "ULONG_MAX out of range"
+# endif
 #endif
 
 /* The type of indexes into strings.  This is signed, not size_t,

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

Summary of changes:
 support/ChangeLog        |  5 +++++
 support/regex_internal.h | 17 ++++++++++++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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