Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/c_header_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_signatures(strip_extern=True, srcdir='src'):
started = False
for line in f:
line = line.strip()
if line.startswith('extern'):
if line.startswith('DECLSPEC extern'):
sigs.append(line)
if not line.endswith(';'):
started = True
Expand All @@ -33,7 +33,7 @@ def get_signatures(strip_extern=True, srcdir='src'):
if line.endswith(';'):
started = False
if strip_extern:
sigs = [s[7:].strip() for s in sigs] # probably don't need strip()
sigs = [s[16:].strip() for s in sigs] # probably don't need strip()
return sigs


Expand Down