From 88f6faaf5d9f8b3541df3c4a855b76fdf1cdb59d Mon Sep 17 00:00:00 2001 From: Damien Laniel Date: Thu, 5 Feb 2009 16:56:29 +0000 Subject: fixed parsing of OFTYPE --- bindings/bindings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings') diff --git a/bindings/bindings.py b/bindings/bindings.py index 0db922bf..e2cdf2a1 100644 --- a/bindings/bindings.py +++ b/bindings/bindings.py @@ -390,7 +390,7 @@ def parse_header(header_file): i += 1 line = line[:-1] + lines[i].lstrip() - m = re.match(r'LASSO_EXPORT\s+((?:const |)[\w]+\s*\*?)\s+(OFTYPE\(.*?\)\s+)?(\*?\w+)\s*\((.*?)\)', line) + m = re.match(r'LASSO_EXPORT\s+((?:const |)[\w]+\s*\*?)\s+(OFTYPE\(.*?\)\s*)?(\*?\w+)\s*\((.*?)\)', line) if m and not m.group(3).endswith('_get_type'): return_type, oftype, function_name, args = m.groups() return_type = return_type.strip() -- cgit