re_intuit_start(): check for IMPLICIT in stclass
authorDavid Mitchell <davem@iabyn.com>
Wed, 19 Mar 2014 14:58:19 +0000 (14:58 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 19 Mar 2014 18:25:55 +0000 (18:25 +0000)
commite0eb31e7431d11b499dac9bfbae6dda175eab0fd
tree62169152983bb82dca5c81a78a1bdd0bab04079c
parente0362b861b7abfc19b44160e65c0d94b98ae924b
re_intuit_start(): check for IMPLICIT in stclass

In the stclass block of code, there are various checks for anchored-ness.
Add !(prog->intflags & PREGf_IMPLICIT) to these conditions, since
from the perspective of these tests, we can only quit early etc if these
are real rather than fake anchors.

As it happens, this currently makes no logical difference, since an
PREGf_IMPLICIT pattern starts with .*, and so more or less by definition
can't have an stclass.

So this commit is really only for logical completeness, and to allow us to
change the definition of ml_anch shortly.
regexec.c