summaryrefslogtreecommitdiff
path: root/vms/gen_shrfls.pl
diff options
context:
space:
mode:
authorTim Bunce <Tim.Bunce@ig.co.uk>1997-06-11 12:00:00 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-06-11 12:00:00 +1200
commit3e3baf6d63945cb64e829d6e5c70a7d00f3d3d03 (patch)
tree0143be655536dc428f4fa3cc7d01f6bcffe14c01 /vms/gen_shrfls.pl
parent08aa1457cd52a368c210ab76a3da91cfadabea1a (diff)
parent3458556dd685b1767b760a72bd2e9007b5c4575e (diff)
downloadperl-3e3baf6d63945cb64e829d6e5c70a7d00f3d3d03.tar.gz
[differences between cumulative patch application and perl5.004_01]perl-5.004_01
[editor's note: The changes between this and 5.004 were processed from the m1t2 release, which was a bad idea as it was the _01 release which had the final corrected attributions. The differences between the various m*t* releases do that; I considered it most valuable just to look at the _NN releases. Many patches have been separated out and/or applied from the p5p archives nonetheless.]
Diffstat (limited to 'vms/gen_shrfls.pl')
-rw-r--r--vms/gen_shrfls.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/vms/gen_shrfls.pl b/vms/gen_shrfls.pl
index cb4f7dd1f1..e451e1826b 100644
--- a/vms/gen_shrfls.pl
+++ b/vms/gen_shrfls.pl
@@ -145,7 +145,8 @@ sub scan_var {
my($const) = $line =~ /^EXTCONST/;
print "\tchecking for global variable\n" if $debug > 1;
- $line =~ s/INIT\(.*\)//;
+ $line =~ s/\s*EXT/EXT/;
+ $line =~ s/INIT\s*\(.*\)//;
$line =~ s/\[.*//;
$line =~ s/=.*//;
$line =~ s/\W*;?\s*$//;
@@ -156,7 +157,7 @@ sub scan_var {
else { $vars{$1}++; }
}
if ($isvaxc) {
- my($type) = $line =~ /^EXT\w*\s+(\w+)/;
+ my($type) = $line =~ /^\s*EXT\w*\s+(\w+)/;
print "\tchecking for use of enum (type is \"$type\")\n" if $debug > 2;
if ($type eq 'expectation') {
$used_expectation_enum++;
@@ -194,18 +195,18 @@ LINE: while (<CPP>) {
while (/^#.*vmsish\.h/i .. /^#.*perl\.h/i) {
while (/__VMS_PROTOTYPES__/i .. /__VMS_SEPYTOTORP__/i) {
print "vms_proto>> $_" if $debug > 2;
- if (/^EXT/) { &scan_var($_); }
+ if (/^\s*EXT/) { &scan_var($_); }
else { &scan_func($_); }
last LINE unless $_ = <CPP>;
}
print "vmsish.h>> $_" if $debug > 2;
- if (/^EXT/) { &scan_var($_); }
+ if (/^\s*EXT/) { &scan_var($_); }
last LINE unless $_ = <CPP>;
}
while (/^#.*opcode\.h/i .. /^#.*perl\.h/i) {
print "opcode.h>> $_" if $debug > 2;
if (/^OP \*\s/) { &scan_func($_); }
- if (/^EXT/) { &scan_var($_); }
+ if (/^\s*EXT/) { &scan_var($_); }
if (/^\s+OP_/) { &scan_enum($_); }
last LINE unless $_ = <CPP>;
}
@@ -216,12 +217,12 @@ LINE: while (<CPP>) {
}
while (/^#.*proto\.h/i .. /^#.*perl\.h/i) {
print "proto.h>> $_" if $debug > 2;
- if (/^EXT/) { &scan_var($_); }
+ if (/\s*^EXT/) { &scan_var($_); }
else { &scan_func($_); }
last LINE unless $_ = <CPP>;
}
print $_ if $debug > 3 && ($debug > 5 || length($_));
- if (/^EXT/) { &scan_var($_); }
+ if (/^\s*EXT/) { &scan_var($_); }
}
close CPP;