OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.

Jack: I hope I didn't break anything for you!
This commit is contained in:
Just van Rossum 2001-12-12 20:51:22 +00:00
parent f8d6473782
commit b48f1d3f8a
1 changed files with 2 additions and 2 deletions

View File

@ -585,8 +585,8 @@ class Scanner_OSX(Scanner):
"""Scanner for modern (post UH3.3) Universal Headers """
def initpatterns(self):
Scanner.initpatterns(self)
self.head_pat = "^EXTERN_API_C"
self.type_pat = "EXTERN_API_C" + \
self.head_pat = "^EXTERN_API\(_C\)?"
self.type_pat = "EXTERN_API\(_C\)?" + \
"[ \t\n]*([ \t\n]*" + \
"\(<type>[a-zA-Z0-9_* \t]*[a-zA-Z0-9_*]\)" + \
"[ \t\n]*)[ \t\n]*"