From 8c8f41634f05119b1085cad7d327d944d065c8df Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 29 Jun 2018 23:38:27 -0400 Subject: [PATCH] lxapigen.pl: Strip whitespace from function names when parsing headers. --- lxapigen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxapigen.pl b/lxapigen.pl index 2ef9558..bfc723d 100755 --- a/lxapigen.pl +++ b/lxapigen.pl @@ -44,7 +44,7 @@ sub typesize { 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,