Fix for some whitespace parsing in Funcs.

* parser/gapi2xml.pl: regex updates to support a bit more whitespace.
This commit is contained in:
Mike Kestner 2011-01-30 17:06:58 -06:00
parent f6d11d67b6
commit a1f9eef0b8

View file

@ -110,8 +110,8 @@ while ($line = <STDIN>) {
next;
}
$edefs{$ename} = $edef;
} elsif ($line =~ /typedef\s+\w+\s*\**\s*\(\*\s*(\w+)\)\s*\(/) {
$fname = $1;
} elsif ($line =~ /typedef\s+(const\s+)?\w+\s*\**\s*\(\s*\*\s*(\w+)\s*\)\s*\(/) {
$fname = $2;
$fdef = "";
while ($line !~ /;/) {
$fdef .= $line;