This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix cx_dup for CXt_LOOP_PLAIN
authorDavid Mitchell <davem@iabyn.com>
Sun, 3 Jan 2016 15:17:40 +0000 (15:17 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:19:21 +0000 (09:19 +0000)
commit1611176fe0e4f8eb2046847ef9439f2eb20a474f
tree24f9279b86425fb1748a7e294bf703909d779815
parent35095fd084a83612cb66208fd8ea578b54ce3c17
fix cx_dup for CXt_LOOP_PLAIN

The context stack duplication code tries to duplicate the loop var
even for CXt_LOOP_PLAIN, which doesn't have a loop var. This didn't
use to matter, since PUSHLOOP_PLAIN() used to set the field to NULL;
for efficiency its now left untouched. So don't try to use it.

Also update the debugging context names since the ordering of the
CXt_LOOP_* has changed recently.
perl.h
sv.c