This removes a difference between Gawk dfa.c and Gnulib dfa.c.
* lib/dfa.c (isblank): Define if neither system nor Gnulib does.
* modules/dfa (Depends-on): Remove isblank.
* modules/isblank: Add a module indicator, for lib/dfa.c.
2020-01-29 Paul Eggert <eggert@cs.ucla.edu>
+ dfa: do not depend on isblank
+ This removes a difference between Gawk dfa.c and Gnulib dfa.c.
+ * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
+ * modules/dfa (Depends-on): Remove isblank.
+ * modules/isblank: Add a module indicator, for lib/dfa.c.
+
dfa: do not assume 64-bit int
Problem reported for VAX/VMS C (!) by Arnold Robbins in:
https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
# undef clrbit
#endif
+/* For code that does not use Gnulib’s isblank module. */
+#if !defined isblank && !defined HAVE_ISBLANK && !defined GNULIB_ISBLANK
+# define isblank dfa_isblank
+static int
+isblank (int c)
+{
+ return c == ' ' || c == '\t';
+}
+#endif
+
/* First integer value that is greater than any character code. */
enum { NOTCHAR = 1 << CHAR_BIT };
ctype
flexmember
intprops
-isblank
locale
regex
stdbool
if test $HAVE_ISBLANK = 0; then
AC_LIBOBJ([isblank])
fi
+gl_MODULE_INDICATOR([isblank])
gl_CTYPE_MODULE_INDICATOR([isblank])
Makefile.am: