Re: [PATCH] regex: port to Gawk on nonstandard platforms

2020-01-27 Thread arnold
Paul Eggert wrote: > On 1/26/20 1:42 AM, arn...@skeeve.com wrote: > > And then in places in regcomp.c BITSET_WORD_BITS is tested in > > several #if/#elif statements. > > Ouch, I hadn't noticed that. It's exercised only on non-GCC platforms > that don't support INT_WIDTH etc., which is why I didn

Re: [PATCH] regex: port to Gawk on nonstandard platforms

2020-01-27 Thread Paul Eggert
On 1/26/20 1:42 AM, arn...@skeeve.com wrote: And then in places in regcomp.c BITSET_WORD_BITS is tested in several #if/#elif statements. Ouch, I hadn't noticed that. It's exercised only on non-GCC platforms that don't support INT_WIDTH etc., which is why I didn't see it in my testing. I insta

Re: [PATCH] regex: port to Gawk on nonstandard platforms

2020-01-26 Thread arnold
Hi. Paul. > diff --git a/lib/regex_internal.h b/lib/regex_internal.h > index 13e15e21e..6d436fde1 100644 > --- a/lib/regex_internal.h > +++ b/lib/regex_internal.h > @@ -141,6 +141,9 @@ > #ifndef SSIZE_MAX > # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) > #endif > +#ifndef ULONG_WIDTH > +# defin