This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.h: PADNAME_SV
authorFather Chrysostomos <sprout@cpan.org>
Wed, 22 Aug 2012 23:33:06 +0000 (16:33 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 22 Aug 2012 23:33:06 +0000 (16:33 -0700)
commit97dad6bd61c5edcb26f3914032533009ea53c245
tree08e8eabc140d1e2652c8b382edee918b0b705ae8
parentc44737a23e8184d44143ac18e378a12912e6e9e8
pad.h: PADNAME_SV

If CPAN modules should not assume that pad names are SVs, we need
to provide a better way than newSVpvn(PADNAME_PV(pn),PADNAME_LEN(pn))
to get an SV out of it, as, knowing that pad names are just SVs, the
core can do it more efficiently by simply returning the pad name
itself.
pad.h