This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
stop S_undo_inc_then_croak() doing CX_POP
authorDavid Mitchell <davem@iabyn.com>
Fri, 16 Oct 2015 13:32:26 +0000 (14:32 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:18:29 +0000 (09:18 +0000)
commit8a1fd305c6533ae61faf5ed57cbe62c995775719
tree8f1b73021ae123f737c5d7500b6c374849708711
parent2aabfe8a6165874dd6373e006f0e80d74d5f602c
stop S_undo_inc_then_croak() doing CX_POP

I added this static function several commits commits ago but in hindsight
I don't like that a cx is passed to it and it does a CX_POP(cx). This is
too much like action at a distance. Instead make the caller save
cx->blk_eval.old_namesv and do the CX_POP itself, then pass namesv as an
arg.
pp_ctl.c