regexec_flags(): keep stringarg constant
authorDavid Mitchell <davem@iabyn.com>
Wed, 10 Jul 2013 13:28:02 +0000 (14:28 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 28 Jul 2013 09:33:37 +0000 (10:33 +0100)
commitb342a60442d4abef40ca7949276367e951128626
treedfe4c6e9bbc095e0d94bea5f659273cc7293c390
parent23a56f329b4aaaf3e9197ba8e1c6b3edc53743ed
regexec_flags(): keep stringarg constant

stringarg is the arg passed to Perl_regexec_flags() to indicate where to
start matching. Currently the code adjusts this under \G, then copies it
to startpos, then later tinkers with startpos further.

Change it so that stringarg is never changed, and all the adjusting is to
startpos. Shouldn't make any logical difference, but makes the code
slightly cleaner and easier to understand (and doesn't require minend to
be adjusted any more).
regexec.c