summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/ext/B/defsubs_h.PL
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-05-24 18:26:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-05-24 18:26:20 +0000
commit483d4e680bd2a6db14835b1b4d65be33488d532b (patch)
tree129a4c95425cb37ed928ef53a27eb7dce5de3345 /gnu/usr.bin/perl/ext/B/defsubs_h.PL
parent8757fe6728b9db37919ad703b336ebbbc84413aa (diff)
stock perl 5.6.1
Diffstat (limited to 'gnu/usr.bin/perl/ext/B/defsubs_h.PL')
-rw-r--r--gnu/usr.bin/perl/ext/B/defsubs_h.PL13
1 files changed, 10 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/ext/B/defsubs_h.PL b/gnu/usr.bin/perl/ext/B/defsubs_h.PL
index 80ef936fcec..da6566b0d71 100644
--- a/gnu/usr.bin/perl/ext/B/defsubs_h.PL
+++ b/gnu/usr.bin/perl/ext/B/defsubs_h.PL
@@ -6,16 +6,23 @@ my ($out) = __FILE__ =~ /(^.*)\.PL/i;
$out =~ s/_h$/.h/;
open(OUT,">$out") || die "Cannot open $file:$!";
print "Extracting $out...\n";
-foreach my $const (qw(AVf_REAL
+foreach my $const (qw(
+ AVf_REAL
HEf_SVKEY
+ SVf_READONLY SVTYPEMASK
+ GVf_IMPORTED_AV GVf_IMPORTED_HV
+ GVf_IMPORTED_SV GVf_IMPORTED_CV
+ CVf_METHOD CVf_LOCKED CVf_LVALUE
SVf_IOK SVf_IVisUV SVf_NOK SVf_POK
- SVf_ROK SVp_IOK SVp_POK ))
+ SVf_ROK SVp_IOK SVp_POK SVp_NOK
+ ))
{
doconst($const);
}
foreach my $file (qw(op.h cop.h))
{
- open(OPH,"../../$file") || die "Cannot open ../../$file:$!";
+ my $path = $^O eq 'MacOS' ? ":::$file" : "../../$file";
+ open(OPH,"$path") || die "Cannot open $path:$!";
while (<OPH>)
{
doconst($1) if (/#define\s+(\w+)\s+([\(\)\|\dx]+)\s*(?:$|\/\*)/);