diff options
author | Craig A. Berry <craigberry@mac.com> | 2005-10-07 02:41:03 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2005-10-07 02:41:03 +0000 |
commit | b37f629b80fce73b994e5d48467ec8b94a468432 (patch) | |
tree | cec2d123dc3373749d761404dab885944f3a695a /vms/gen_shrfls.pl | |
parent | 06e869a4611755754db23526eea75a62d47917e8 (diff) | |
download | perl-b37f629b80fce73b994e5d48467ec8b94a468432.tar.gz |
Parse symbols for the linker when more than one declaration
on the same line (the way PERLVARISC now throws at us).
p4raw-id: //depot/perl@25710
Diffstat (limited to 'vms/gen_shrfls.pl')
-rw-r--r-- | vms/gen_shrfls.pl | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/vms/gen_shrfls.pl b/vms/gen_shrfls.pl index 2a940142cb..fcd72f4004 100644 --- a/vms/gen_shrfls.pl +++ b/vms/gen_shrfls.pl @@ -146,17 +146,19 @@ sub scan_var { } sub scan_func { - my($line) = @_; - - print "\tchecking for global routine\n" if $debug > 1; - $line =~ s/\b(IV|Off_t|Size_t|SSize_t|void)\b//i; - if ( $line =~ /(\w+)\s*\(/ ) { - print "\troutine name is \\$1\\\n" if $debug > 1; - if ($1 eq 'main' || $1 eq 'perl_init_ext' || $1 eq '__attribute__format__' - || $1 eq 'sizeof' || (($1 eq 'Perl_stashpv_hvname_match') && ! $use_threads)) { - print "\tskipped\n" if $debug > 1; + my @lines = split /;/, @_[0]; + + for my $line (@lines) { + print "\tchecking for global routine\n" if $debug > 1; + $line =~ s/\b(IV|Off_t|Size_t|SSize_t|void)\b//i; + if ( $line =~ /(\w+)\s*\(/ ) { + print "\troutine name is \\$1\\\n" if $debug > 1; + if ($1 eq 'main' || $1 eq 'perl_init_ext' || $1 eq '__attribute__format__' + || $1 eq 'sizeof' || (($1 eq 'Perl_stashpv_hvname_match') && ! $use_threads)) { + print "\tskipped\n" if $debug > 1; + } + else { $fcns{$1}++ } } - else { $fcns{$1}++ } } } |