From: Craig A. Berry Date: Fri, 7 Oct 2005 02:41:03 +0000 (+0000) Subject: Parse symbols for the linker when more than one declaration X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b37f629b80fce73b994e5d48467ec8b94a468432;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/vms/gen_shrfls.pl b/vms/gen_shrfls.pl index 2a94014..fcd72f4 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}++ } } }