1
0
mirror of http://mpg123.de/trunk/.git synced 2025-04-19 16:02:16 +03:00
mpg123/scripts/exportsym.pl
2007-11-09 13:14:53 +00:00

14 lines
272 B
Perl

#!/usr/bin/perl
print STDERR "I am filtering the EXPORT symbols out of some header you give me to STDIN.\n";
while(<STDIN>)
{
if(/^EXPORT\s+([^\(\[]+)/)
{
my $sym = $1;
# some type symname
$sym =~ s/^.*\s(\S+)\s*$/$1/;
$sym =~ s/^\*+//;
print $sym,"\n";
}
}