This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
simplify S_leave_common() and callers
authorDavid Mitchell <davem@iabyn.com>
Sun, 11 Oct 2015 14:58:06 +0000 (15:58 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:42 +0000 (08:59 +0000)
commit0663a8f8f913bf74e0120db791841537f2f81956
tree10653fc3b5377e13a36a261f0ccf49a4a41cbc1a
parent5d627e6f3783ad2d56b737d1cc283f67ce835ec0
simplify S_leave_common() and callers

Currently one of the args to S_leave_common() is supposed to be the
current stack pointer; it returns an updated sp. Instead make it get/set
PL_stack_sp directly.

e.g. in the caller, replace

    dSP;
    SP = S_leave_common(..., SP, ...);
    PUTBACK;

with
    S_leave_common(..., ...);

and in S_leave_common(), make it initially get PL_stack_sp, and before
returning, update PL_stack_sp.
embed.fnc
embed.h
pp_ctl.c
proto.h