From 1732178052a9cc0509686850cd85dfed485d6b39 Mon Sep 17 00:00:00 2001 From: Eric Firing Date: Sat, 20 Jul 2024 07:51:38 -1000 Subject: [PATCH] Modify c_header_parser.py for DECLSPEC addition --- tools/c_header_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/c_header_parser.py b/tools/c_header_parser.py index 1a03007..a23466d 100644 --- a/tools/c_header_parser.py +++ b/tools/c_header_parser.py @@ -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 @@ -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