aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-12-06 21:37:17 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-12-06 21:37:17 +0200
commit77620464b7805e03fcfc5de21a6e46b32426c6f0 (patch)
tree22516f41f0af64170ed17e104d371dbed86d5109
parentc45c07f2825065fdeb701c5dff763b988f6d9653 (diff)
downloadegawk-77620464b7805e03fcfc5de21a6e46b32426c6f0.tar.gz
egawk-77620464b7805e03fcfc5de21a6e46b32426c6f0.tar.bz2
egawk-77620464b7805e03fcfc5de21a6e46b32426c6f0.zip
Also need this change for dfa.h for dfa.c sync.
-rw-r--r--ChangeLog1
-rw-r--r--dfa.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d2d677a7..4de41541 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2011-11-27 Arnold D. Robbins <arnold@skeeve.com>
* dfa.c: Sync with GNU grep.
+ * dfa.h: Add _GL_ATTRIBUTE_PURE macro. Bleah.
2011-11-14 John Haque <j.eh@mchsi.com>
diff --git a/dfa.h b/dfa.h
index 4d65ee34..d45f3139 100644
--- a/dfa.h
+++ b/dfa.h
@@ -22,6 +22,13 @@
# define __attribute__(x)
#endif
+/* The __pure__ attribute was added in gcc 2.96. */
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
+# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
+#else
+# define _GL_ATTRIBUTE_PURE /* empty */
+#endif
+
/* Element of a list of strings, at least one of which is known to
appear in any R.E. matching the DFA. */
struct dfamust