Skip to content

Commit

Permalink
Merge pull request #174 from efiring/fix_signature_parser
Browse files Browse the repository at this point in the history
Modify c_header_parser.py for DECLSPEC addition
  • Loading branch information
efiring authored Jul 20, 2024
2 parents 489ba32 + 1732178 commit 2cb7b28
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 2cb7b28

Please sign in to comment.