re_intuit_start(): check for IMPLICIT in abs anch
authorDavid Mitchell <davem@iabyn.com>
Wed, 19 Mar 2014 16:34:28 +0000 (16:34 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 19 Mar 2014 18:25:55 +0000 (18:25 +0000)
commit343c8a296e416def92250d436a4ed6ffb932445f
tree115d4341a21b65cc59e596e9eba51f975d99e96b
parente0eb31e7431d11b499dac9bfbae6dda175eab0fd
re_intuit_start(): check for IMPLICIT in abs anch

The block of code that deals with absolute anchors looks like:

    if (...) {
        if (.... && !PREGf_IMPLICIT) ...;
        if (FOO) {
            assert(!PREGf_IMPLICIT);
            ....
        }
    }

where the constraints of FOO imply PREGf_IMPLICIT, as shown by the
assertion. Simplify this to:

    if (... && !PREGf_IMPLICIT) {
        if (....) ...;
        if (FOO) {
            ....
        }
    }
regexec.c