Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b48f1d3

Browse files
committed
OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Jack: I hope I didn't break anything for you!
1 parent f8d6473 commit b48f1d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/bgen/bgen/scantools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ class Scanner_OSX(Scanner):
585585
"""Scanner for modern (post UH3.3) Universal Headers """
586586
def initpatterns(self):
587587
Scanner.initpatterns(self)
588-
self.head_pat = "^EXTERN_API_C"
589-
self.type_pat = "EXTERN_API_C" + \
588+
self.head_pat = "^EXTERN_API\(_C\)?"
589+
self.type_pat = "EXTERN_API\(_C\)?" + \
590590
"[ \t\n]*([ \t\n]*" + \
591591
"\(<type>[a-zA-Z0-9_* \t]*[a-zA-Z0-9_*]\)" + \
592592
"[ \t\n]*)[ \t\n]*"

0 commit comments

Comments
 (0)