[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, feature/pma, updated. gawk-4.1.0-4736-g9d385f9b
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, feature/pma, updated. gawk-4.1.0-4736-g9d385f9b |
Date: |
Fri, 27 May 2022 17:45:28 -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/pma has been updated
via 9d385f9b9813fcc54105f5b4ae99fd1e6086b139 (commit)
from 75b69fd522e743cc2ecee53a09cffc71b8166cb8 (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=9d385f9b9813fcc54105f5b4ae99fd1e6086b139
commit 9d385f9b9813fcc54105f5b4ae99fd1e6086b139
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Fri May 27 17:45:17 2022 -0400
Fix in pma.c.
diff --git a/support/ChangeLog b/support/ChangeLog
index 03780887..be52a7f4 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,8 @@
+2022-05-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * pma.c: Updated from Terrence Kelley to compile on
+ older compilers.
+
2022-05-26 Arnold D. Robbins <arnold@skeeve.com>
* pma.h, pma.c, agpl-3.0.txt: New files.
diff --git a/support/pma.c b/support/pma.c
index 0b8224e9..d769bb0e 100644
--- a/support/pma.c
+++ b/support/pma.c
@@ -76,7 +76,13 @@ typedef struct ao { // alloc object
// bit 1: is the previous ao on the state.anext list in use?
// bit 2: has this ao ever grown via realloc?
-static const uintptr_t lomask = 0x7, himask = ~lomask; // requires recent
compiler
+// Some older compilers gratuitously reject the himask definition on
+// the first line below despite it being perfectly legal C99. The
+// workaround on the second line below appears correct by inspection
+// but it has not yet been subjected to the same extensive tests as
+// the original.
+// static const uintptr_t lomask = 0x7, himask = ~lomask; // requires recent
compiler
+static const uintptr_t lomask = 0x7, himask = ~ ( (uintptr_t) 0x7 ); // not
extensively tested as of Fri 27 May 2022
// extract bits from header
#define HIBH(ao_t_ptr) ((ao_t *)((uintptr_t)(ao_t_ptr) & himask))
-----------------------------------------------------------------------
Summary of changes:
support/ChangeLog | 5 +++++
support/pma.c | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, feature/pma, updated. gawk-4.1.0-4736-g9d385f9b,
Arnold Robbins <=