]> Savannah Git Hosting - gnulib.git/commitdiff
dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Dec 2019 01:02:31 +0000 (17:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Dec 2019 08:24:52 +0000 (00:24 -0800)
Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
* lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
if not already defined.

ChangeLog
lib/dfa.h

index 561b0ba0ac04ed4244fdb75975118f98b4e4d5f0..dca623c5f62150fe4e30a2afe92df2f8b4744b22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
 
+       dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
+       Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
+       * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
+       if not already defined.
+
        dfa: remove one dependency on MB_CUR_MAX
        * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
 
index 96c3bf1f1bf430a4d8cdaf51870bd6e24fd03106..09e7991bda21723890af7b18d0337e23fee414b3 100644 (file)
--- a/lib/dfa.h
+++ b/lib/dfa.h
@@ -37,6 +37,11 @@ struct dfamust
 /* The dfa structure. It is completely opaque. */
 struct dfa;
 
+/* Needed when Gnulib is not used.  */
+#ifndef _GL_ATTRIBUTE_MALLOC
+# define  _GL_ATTRIBUTE_MALLOC
+#endif
+
 /* Entry points. */
 
 /* Allocate a struct dfa.  The struct dfa is completely opaque.