re_intuit_start(): document floating code better
authorDavid Mitchell <davem@iabyn.com>
Thu, 16 Jan 2014 15:16:34 +0000 (15:16 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 7 Feb 2014 22:39:36 +0000 (22:39 +0000)
commiteb3831ce7cc842e7305959e873fcc82e356c7a57
treeb16812275c2c6fdb86f413e5ab86cffa5d48ae20
parent1dc475d0a8ef209537c2c65adad8d8dbde129b3a
re_intuit_start(): document floating code better

Add some comments to the float-finding code that explains what the t, last
and last1 vars are, and how they're calculated.

Also make the calculation of last separate from last1;
it should logically be the same, but clearer. i.e. change

    last = last1 = ...;
    if (cond)
        last = ....;

to

    last1 = ...;
    last = cond ? .... : last1;
regexec.c