summaryrefslogtreecommitdiffstats
path: root/python/extract.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/extract.py')
-rw-r--r--python/extract.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/extract.py b/python/extract.py
index 460af5ab..f836edc7 100644
--- a/python/extract.py
+++ b/python/extract.py
@@ -108,7 +108,7 @@ def find_typedefs(buf):
return typedefs
proto_pat = re.compile(r"""
-(?P<ret>(-|\w|\&|\*)+\s*) # return type
+(?P<ret>(-|\w|\&|\*|\s)+\s*) # return type
\s+ # skip whitespace
(?P<func>\w+)\s*[(] # match the function name until the opening (
(?P<args>.*?)[)] # group the function arguments
@@ -123,7 +123,6 @@ def find_functions(buf):
for p in buf:
if len(p) == 0:
continue
-
m = proto_pat.match(p)
if m == None:
continue