There's no need to check for __attribute__ with ANSI functions, since

we only check to the opening parenthesis anyway...
This commit is contained in:
Richard Levitte 2003-04-04 14:19:00 +00:00
parent 3ae70939ba
commit b5f96e8818

View file

@ -128,7 +128,7 @@ while (($hdr, $lib) = each %libinc)
s/^[\n\s]*//g; s/^[\n\s]*//g;
s/[\n\s]*$//g; s/[\n\s]*$//g;
next if(/typedef\W/); next if(/typedef\W/);
if (/\(\*(\w*)\([^\)]+\)(\s*__attribute__\(.*\)\s*)?$/) { if (/\(\*(\w*)\([^\)]+/) {
my $name = $1; my $name = $1;
$name =~ tr/[a-z]/[A-Z]/; $name =~ tr/[a-z]/[A-Z]/;
$ftrans{$name} = $1; $ftrans{$name} = $1;