]> Savannah Git Hosting - gnulib.git/commitdiff
regex: port to Gawk on nonstandard platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jan 2020 08:32:32 +0000 (00:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jan 2020 08:33:02 +0000 (00:33 -0800)
* lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
This is useful for Gawk, which does not use the Gnulib stdlib-h
module.  Problem reported by Arnold Robbins in:
https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html

ChangeLog
lib/regex_internal.h

index 2336126b099608e08a69a772037f68a9023b0d19..3b4d32dc63cfcc63b171e47cf60e4d0d222a5325 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       regex: port to Gawk on nonstandard platforms
+       * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
+       This is useful for Gawk, which does not use the Gnulib stdlib-h
+       module.  Problem reported by Arnold Robbins in:
+       https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
+
 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        regex: fix bug with >=16 subexpressions
index 13e15e21ec18796e19f96eee49c1d0814e9e633a..6d436fde1e979e748189c8cc021dde34fa3524f5 100644 (file)
 #ifndef SSIZE_MAX
 # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
 #endif
+#ifndef ULONG_WIDTH
+# define ULONG_WIDTH (CHAR_BIT * sizeof (unsigned long int))
+#endif
 
 /* The type of indexes into strings.  This is signed, not size_t,
    since the API requires indexes to fit in regoff_t anyway, and using