This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move multicall check to S_return_lvalues
authorDavid Mitchell <davem@iabyn.com>
Tue, 9 Jun 2015 09:51:15 +0000 (10:51 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 19 Jun 2015 07:44:17 +0000 (08:44 +0100)
commit85ecf1471c158cb93666daeb06af5b417d8e0c6e
tree252ea1cbf659e13e45dc40879cdec84a4777bfee
parent13929c4c904f664656210671cd0d039f4212f917
move multicall check to S_return_lvalues

Currently pp_leavesublv has a check at the top:

    if (CxMULTICALL(&cxstack[cxstack_ix]))
       return 0;

Move this instead into S_return_lvalues(), which pp_leavesublv immediately
calls. This has no effect on the pp_leavesublv code path, and also
has no effect on the pp_return code path, because although pp_return
calls S_return_lvalues, it doesn't in the case of MULTICALL, which it has
already checked for earlier.

So it shouldn't change anything functionally.

This will allow us to eliminate S_return_lvalues in the next commit.
pp_ctl.c