diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-02-04 20:43:46 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-02-04 20:43:46 +0000 |
commit | 9947c4e38f65a821b51154161ed66da44bf02b86 (patch) | |
tree | 3b02031240032eb3db9cb41c2cc226eded45b7cb /vms/gen_shrfls.pl | |
parent | c0bce9aa45a3d3e9c7a6fd9886d453d0ab22e69d (diff) | |
download | perl-9947c4e38f65a821b51154161ed66da44bf02b86.tar.gz |
In vms/gen_shrfls.pl, consider EXTERN_C declarations as function
candidates, not global variable candidates. Currently only needed
for PerlIO_teardown.
p4raw-id: //depot/perl@30120
Diffstat (limited to 'vms/gen_shrfls.pl')
-rw-r--r-- | vms/gen_shrfls.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vms/gen_shrfls.pl b/vms/gen_shrfls.pl index 98afe30c17..f412e8128a 100644 --- a/vms/gen_shrfls.pl +++ b/vms/gen_shrfls.pl @@ -194,18 +194,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 (/^\s*EXT/) { &scan_var($_); } + if (/^\s*EXT(CONST|\s+)/) { &scan_var($_); } else { &scan_func($_); } last LINE unless defined($_ = <CPP>); } print "vmsish.h>> $_" if $debug > 2; - if (/^\s*EXT/) { &scan_var($_); } + if (/^\s*EXT(CONST|\s+)/) { &scan_var($_); } last LINE unless defined($_ = <CPP>); } while (/^#.*opcode\.h/i .. /^#.*perl\.h/i) { print "opcode.h>> $_" if $debug > 2; if (/^OP \*\s/) { &scan_func($_); } - if (/^\s*EXT/) { &scan_var($_); } + if (/^\s*EXT(CONST|\s+)/) { &scan_var($_); } last LINE unless defined($_ = <CPP>); } # Check for transition to new header file @@ -221,12 +221,12 @@ LINE: while (<CPP>) { } if ($ckfunc) { print "$scanname>> $_" if $debug > 2; - if (/^\s*EXT/) { &scan_var($_); } + if (/^\s*EXT(CONST|\s+)/) { &scan_var($_); } else { &scan_func($_); } } else { print $_ if $debug > 3 && ($debug > 5 || length($_)); - if (/^\s*EXT/) { &scan_var($_); } + if (/^\s*EXT(CONST|\s+)/) { &scan_var($_); } } } close CPP; |