aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-07-29 15:55:27 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-07-29 15:55:27 +0300
commit6922f06b21ad10c5bfd07ae22d149f700f761a67 (patch)
treeeaf682246d314814740c0a61c248d7fd39af638b
parent7b10924a0f6cc443742af2f032ddbafea1c62e4e (diff)
downloadegawk-6922f06b21ad10c5bfd07ae22d149f700f761a67.tar.gz
egawk-6922f06b21ad10c5bfd07ae22d149f700f761a67.tar.bz2
egawk-6922f06b21ad10c5bfd07ae22d149f700f761a67.zip
Update dfa.h and support flexible array member.
-rw-r--r--ChangeLog4
-rw-r--r--custom.h1
-rw-r--r--support/ChangeLog4
-rw-r--r--support/dfa.h2
4 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index df5db6fd..9f5b2f4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-07-29 Arnold D. Robbins <arnold@skeeve.com>
+
+ * custom.h (FLEXIBLE_ARRAY_MEMBER): Define to 1 for dfa.h.
+
2020-07-28 Arnold D. Robbins <arnold@skeeve.com>
Eliminate 'iszero: redefined' warning from tcc.
diff --git a/custom.h b/custom.h
index 61d339d5..aa0d7d61 100644
--- a/custom.h
+++ b/custom.h
@@ -99,5 +99,6 @@ typedef unsigned long long uint_fast64_t;
#else
# define _GL_ATTRIBUTE_PURE /* empty */
#endif
+#define FLEXIBLE_ARRAY_MEMBER 1
#include "mbsupport.h" /* defines stuff for DJGPP to fake MBS */
diff --git a/support/ChangeLog b/support/ChangeLog
index 5a6c4342..fc3500a9 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,7 @@
+2020-07-29 Arnold D. Robbins <arnold@skeeve.com>
+
+ * dfa.h: Synced from GNULIB.
+
2020-07-26 Arnold D. Robbins <arnold@skeeve.com>
* cdefs.h, dfa.c, libc-config.h, localeinfo.c, localeinfo.h,
diff --git a/support/dfa.h b/support/dfa.h
index 80e8dbab..c5bff898 100644
--- a/support/dfa.h
+++ b/support/dfa.h
@@ -31,7 +31,7 @@ struct dfamust
bool exact;
bool begline;
bool endline;
- char *must;
+ char must[FLEXIBLE_ARRAY_MEMBER];
};
/* The dfa structure. It is completely opaque. */