This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add PL_sv_zero
authorDavid Mitchell <davem@iabyn.com>
Mon, 3 Jul 2017 16:07:28 +0000 (17:07 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 10:30:21 +0000 (11:30 +0100)
commit5a6c28370397ad3d5c138df5778833dc4b11c3be
tree220b9b186bb82e9ed21290c3f93130b906e3ba27
parent0283ad960acb937e9387b3323f1f7852c2adb0fa
add PL_sv_zero

it's like PL_sv_no, except that its string value is "0" rather than "".
It can be used for example where pp function wants to push a zero return
value on the stack. The next commit will start to use it.

Also update the SvIMMORTAL() to be more efficient: it now checks whether
the SV's address is in a range rather than individually checking against
&PL_sv_undef, &PL_sv_no etc.
dump.c
embedvar.h
globvar.sym
intrpvar.h
perl.c
perl.h
sv.c
sv.h