re_intuit_start(): merge anch and float "other"
authorDavid Mitchell <davem@iabyn.com>
Sun, 2 Feb 2014 17:49:57 +0000 (17:49 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Feb 2014 13:50:10 +0000 (13:50 +0000)
commitead917d0d9dff9f5fb7db5900650cb5b54950456
tree1eabbd66a6289bba135bd3c8dbec4d541a19fa86
parent1a08ba3a6099186231e66bc4524910ad4ae3c51d
re_intuit_start(): merge anch and float "other"

When processing the "other" substring, there are two very similar
branches: one if "other" is anchored, the other if it's floating.
Merge these two branches.

The diff output makes it look a lot messier that it actually is; really
it's a bit like

    if (other_ix) {
        A;
        B1;
        C;
    }
    else {
        A;
        B2;
        C;
    }

becomes

    {
        A;
        if (other_ix)
            B1;
        else
            B2;
        C;
    }

where each statement such as B, that differs between the two branches,
is handled separately.
regexec.c