This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Expose all GV flags matching qr/GVf_/ as constants in B.
authorNicholas Clark <nick@ccl4.org>
Mon, 23 Jul 2012 11:27:32 +0000 (13:27 +0200)
committerNicholas Clark <nick@ccl4.org>
Tue, 24 Jul 2012 08:24:18 +0000 (10:24 +0200)
Previously only those matching qr/GVf_IMPORTED/ were exposed.

ext/B/Makefile.PL

index 312e441..de6530c 100644 (file)
@@ -20,8 +20,7 @@ if ($core) {
     $headerpath = File::Spec->catdir($Config::Config{archlibexp}, "CORE");
 }
 
-my @names = qw(GVf_IMPORTED_AV GVf_IMPORTED_CV GVf_IMPORTED_HV GVf_IMPORTED_SV
-              HEf_SVKEY
+my @names = qw(HEf_SVKEY
               SVTYPEMASK SVt_PVGV SVt_PVHV
               PAD_FAKELEX_ANON PAD_FAKELEX_MULTI);
 
@@ -39,6 +38,7 @@ if ($] < 5.009) {
 # match the pattern below.
 foreach my $tuple (['cop.h'],
                    ['cv.h', 'CVf'],
+                   ['gv.h', 'GVf'],
                    ['op.h'],
                    ['op_reg_common.h','(?:(?:RXf_)?PMf_)'],
                    ['regexp.h','RXf_'],