From: Paul Eggert Date: Tue, 17 Dec 2019 01:02:31 +0000 (-0800) Subject: dfa: port _GL_ATTRIBUTE_MALLOC to Gawk X-Git-Tag: v1.0~4498 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=10ad4d2ac38c2ac2d16bd7686792715f64f9435e;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 561b0ba0ac..dca623c5f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2019-12-16 Paul Eggert + 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. diff --git a/lib/dfa.h b/lib/dfa.h index 96c3bf1f1b..09e7991bda 100644 --- 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.