This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
eliminate PL_reglast(close)?paren, PL_regoffs
authorDavid Mitchell <davem@iabyn.com>
Tue, 15 May 2012 11:55:22 +0000 (12:55 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:52 +0000 (13:32 +0100)
commitb93070ed2e35b0430327cc866a4fcf4042014513
treeb4f5b10e08c3596add6e6ab1ba5ebe8e7a8da9fc
parentf8ff62a0b7c5ec858ae67e3f79488621e8f03107
eliminate PL_reglast(close)?paren, PL_regoffs

eliminate the three vars
    PL_reglastcloseparen
    PL_reglastparen
    PL_regoffs
(which are actually aliases to PL_reg_state struct elements).

These three vars always point to the corresponding fields within the
currently executing regex; so just access those fields directly instead.

This makes switching between regexes with (??{}) simpler: just update
rex, and everything automatically references the new fields.
embed.fnc
embed.h
proto.h
regexec.c
regexp.h
sv.c