This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
eliminate PL_regsize
authorDavid Mitchell <davem@iabyn.com>
Sat, 15 Dec 2012 00:31:40 +0000 (00:31 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 16 Dec 2012 20:13:03 +0000 (20:13 +0000)
commit92da3157402727e9c7bdca6b9497423ca094acbe
tree68923971deeb7d40493145791f2ff45711fde43a
parentf67f9e537710bc816e5e7ba69a559e004ba340dd
eliminate PL_regsize

This var (or rather PL_reg_state.re_state_regsize, which it is #deffed to)
just holds the index of the maximum opening paren index seen so far in
S_regmatch(). So make it a local var of S_regmatch() and pass it as a
param to the couple of static functions called from there that need it.

(Also give the local var the more meaningful name 'maxopenparen'.)
embed.fnc
embed.h
proto.h
regexec.c
regexp.h