diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-08 23:49:00 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-08 23:49:00 +0000 |
commit | 72108f2bbce08927d9d0b7d1a4f1b603819f136a (patch) | |
tree | 9b3fe53f132ee0eeddbf3aec5cdc3412d7bb5fa2 /Porting | |
parent | c8688140bd64a2d3d14b3af91b889a363c72ea56 (diff) | |
download | perl-72108f2bbce08927d9d0b7d1a4f1b603819f136a.tar.gz |
Still more portability.
p4raw-id: //depot/perl@15125
Diffstat (limited to 'Porting')
-rw-r--r-- | Porting/findrfuncs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Porting/findrfuncs b/Porting/findrfuncs index c13643ee6e..36fb7e8fa6 100644 --- a/Porting/findrfuncs +++ b/Porting/findrfuncs @@ -31,7 +31,7 @@ if (open(CONFIG, "config.sh")) { push @EXES, "perl$EXE"; -find(sub {push @EXES, $File::Find::name if /.$SO$/}, '.' ); +find(sub {push @EXES, $File::Find::name if /\.$SO$/}, '.' ); push @EXES, @ARGV; @@ -45,16 +45,17 @@ my %rfuncs; my @syms; find(sub { return unless -f $File::Find::name; - open my $F, "<$File::Find::name" + local *F; + open F, "<$File::Find::name" or die "Can't open $File::Find::name: $!"; my $line; - while (defined ($line = <$F>)) { + while (defined ($line = <F>)) { if ($line =~ /\b(\w+_r)\b/) { #warn "$1 => $File::Find::name\n"; $rfuncs{$1}->{$File::Find::name}++; } } - close $F; + close F; }, @INCDIRS); # delete bogus symbols grepped out of comments and such @@ -68,6 +69,7 @@ for my $exe (@EXES) { chomp $sym; $sym =~ s/^\s+//; $sym =~ s/^([0-9A-Fa-f]+\s+)?[Uu]\s+//; + $sym =~ s/\s+[Uu]\s+-$//; next if /\s/; $sym =~ s/\@.*\z//; # remove @@GLIBC_2.0 etc # warn "#### $sym\n"; |