This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp.c & sv.c: pp_ref UTF8 and null cleanup.
authorBrian Fraser <fraserbn@gmail.com>
Mon, 26 Sep 2011 19:56:47 +0000 (12:56 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 6 Oct 2011 20:01:08 +0000 (13:01 -0700)
commita15456ded8f3d1fb2d67e9e3027b5766cc1c419f
tree86c9ca52d9348bc2218b1fee299d2ca74ba3892c
parent70b71ec84c6ce44565d910f531ad659af12a4c35
pp.c & sv.c: pp_ref UTF8 and null cleanup.

This adds a new function to sv.c, sv_ref, which is a nul-and-UTF8
clean version of sv_reftype. pp_ref now uses that.

sv_ref() not only returns the SV, but also takes in an SV
to modify, so we can say both sv_ref(TARG, obj, TRUE); and
sv = sv_ref(NULL, obj, TRUE);
embed.fnc
pp.c
sv.c
t/op/ref.t
t/uni/bless.t