lxapigen.pl: Strip whitespace from function names when parsing headers.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 29 Jun 2018 23:38:27 -0400
changeset 145 fbb97d2fc0e9
parent 144 012b8bf425c4
child 146 43337d558fc1
lxapigen.pl: Strip whitespace from function names when parsing headers.
lxapigen.pl
--- a/lxapigen.pl	Tue Jul 03 22:47:58 2018 -0400
+++ b/lxapigen.pl	Fri Jun 29 23:38:27 2018 -0400
@@ -44,7 +44,7 @@
         next if not /OS2APIINFO/;
         my $line = $_;
 
-        if (/\AOS2EXPORT\s+(.*?)\s+(OS2API|OS2API16)\s+(.*?)\((.*?)\)\s+OS2APIINFO\((.*?)\);/) {
+        if (/\AOS2EXPORT\s+(.*?)\s+(OS2API|OS2API16)\s+(.*?)\s*\((.*?)\)\s+OS2APIINFO\((.*?)\);/) {
             my %table = (
                 'rettype' => $1,
                 'apitype' => $2,