From: Craig A. Berry Date: Sun, 4 Feb 2007 20:43:46 +0000 (+0000) Subject: In vms/gen_shrfls.pl, consider EXTERN_C declarations as function X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9947c4e38f65a821b51154161ed66da44bf02b86;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/vms/gen_shrfls.pl b/vms/gen_shrfls.pl index 98afe30..f412e81 100644 --- a/vms/gen_shrfls.pl +++ b/vms/gen_shrfls.pl @@ -194,18 +194,18 @@ LINE: while () { 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($_ = ); } print "vmsish.h>> $_" if $debug > 2; - if (/^\s*EXT/) { &scan_var($_); } + if (/^\s*EXT(CONST|\s+)/) { &scan_var($_); } last LINE unless defined($_ = ); } 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($_ = ); } # Check for transition to new header file @@ -221,12 +221,12 @@ LINE: while () { } 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;