This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
eliminate PL_reginput
authorDavid Mitchell <davem@iabyn.com>
Wed, 12 Sep 2012 19:10:44 +0000 (20:10 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 14 Sep 2012 07:49:34 +0000 (08:49 +0100)
commitf73aaa438c3ca4e4c489cf8821275d72c192859d
treed549aca91b8dcd55413a89283a85e4d6ddb5f9df
parenta341814904f870ae50cc3ebaec8967e9fc103b66
eliminate PL_reginput

PL_reginput (which is actually #defined to PL_reg_state.re_state_reginput)
is, to all intents and purposes, state that is only used within
S_regmatch().

The only other places it is referenced are in S_regtry() and S_regrepeat(),
where it is used to pass the current match position back and forth between
the subs.

Do this passing instead via function args, and bingo! PL_reginput is now
just a local var of S_regmatch().
embed.fnc
embed.h
proto.h
regexec.c
regexp.h
sv.c