This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add itersave field to LOOP context struct
authorDavid Mitchell <davem@iabyn.com>
Wed, 19 Aug 2015 11:33:24 +0000 (12:33 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:39 +0000 (08:59 +0000)
commitf0bb9bf76bbed7ffe177496880af0e8873394453
tree7b88e267ae5866023b8fa821b7ec2a6a3248e7bc
parent7b0c33a2fa8735e15cef345b0dda437d9679124e
Add itersave field to LOOP context struct

When entering a for loop, rather than saving the original loop variable on
the save stack, save it in the context struct. Quicker and simpler.

Note that as of this commit, entering a for loop no longer saves anything
on the save stack.
cop.h
pp_ctl.c