This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Prepare B::Concise for upcoming pad name changes
authorFather Chrysostomos <sprout@cpan.org>
Fri, 28 Nov 2014 01:02:44 +0000 (17:02 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 30 Nov 2014 19:48:39 +0000 (11:48 -0800)
commit53af8ccbd2539275a6da9742a1279817c92c8594
tree702783ac4b9ccb58f9a9c7c3b6db28b248aafac2
parentaa572f37468bc3a5a004bcb1ec555270d144d0bd
Prepare B::Concise for upcoming pad name changes

When pad names become their own type, separate from SVs, the ‘immor-
tal’ pad names, &PL_padname_undef and &PL_padname_const (to replace
&PL_sv_undef and &PL_sv_no), will no longer be B::SPECIAL objects,
but B::PADNAMEs.  The way to distinguish them is to check the
length.  This method happens to work both before and after the pad
name changes.
ext/B/B/Concise.pm