Skip to content

Commit 2cb7b28

Browse files
authored
Merge pull request #174 from efiring/fix_signature_parser
Modify c_header_parser.py for DECLSPEC addition
2 parents 489ba32 + 1732178 commit 2cb7b28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/c_header_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_signatures(strip_extern=True, srcdir='src'):
2424
started = False
2525
for line in f:
2626
line = line.strip()
27-
if line.startswith('extern'):
27+
if line.startswith('DECLSPEC extern'):
2828
sigs.append(line)
2929
if not line.endswith(';'):
3030
started = True
@@ -33,7 +33,7 @@ def get_signatures(strip_extern=True, srcdir='src'):
3333
if line.endswith(';'):
3434
started = False
3535
if strip_extern:
36-
sigs = [s[7:].strip() for s in sigs] # probably don't need strip()
36+
sigs = [s[16:].strip() for s in sigs] # probably don't need strip()
3737
return sigs
3838

3939

0 commit comments

Comments
 (0)