This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PUSHEVAL: make n param an SV rather than a string
authorDavid Mitchell <davem@iabyn.com>
Sat, 26 Dec 2015 12:45:01 +0000 (12:45 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:19:19 +0000 (09:19 +0000)
commitc83cbdf5936b95912a7ef5ec1e23c92eb03accc2
tree2c0a96d389d3e4e7170d0866da969b03d31b1c12
parentceb12bd8658d8542570022026702734394fec792
PUSHEVAL: make n param an SV rather than a string

Rather than doing

    cx->blk_eval.old_namesv = (n ? newSVpv(n,0) : NULL);

make the caller responsible for creating and passing in the SV. Since
only only place (pp_require) passes a non-null value, this saves the
other places having to test for nullness.
cop.h
pp_ctl.c