Change method of passing some info from regcomp to regexec
authorKarl Williamson <public@khwilliamson.com>
Mon, 17 Feb 2014 22:39:12 +0000 (15:39 -0700)
committerKarl Williamson <public@khwilliamson.com>
Wed, 19 Feb 2014 15:32:59 +0000 (08:32 -0700)
commit3b04b210101efbbbdf1d8095e181c4218cdf59c2
tree0ab4999ede9e0c313c5d3b2500d6cd81d6446656
parent4afbae25415a29a2ea66f300c95436267450769c
Change method of passing some info from regcomp to regexec

For the last several releases, the fact that an ANYOF node could match
something outside its bitmap has been passed to regexec.c by having its
ARG field not be -1 (appropriately cast).  A bit was set if the match
could occur even if the target string was not UTF-8 encoded.  This
design was used to save a bit, as previously there was a bit also for it
matching UTF-8 strings.

That design is no longer tenable, as a future commit will have a third
(independent) reason for something to match outside the bitmap,  This
commits uses the current spare bit flag to indicate if the match can
only occur if the target string is UTF-8.
regcomp.c
regcomp.h
regexec.c