Skip to content

Commit

Permalink
Modify c_header_parser.py for DECLSPEC addition
Browse files Browse the repository at this point in the history
  • Loading branch information
efiring committed Jul 20, 2024
1 parent 489ba32 commit 1732178
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 1732178

Please sign in to comment.