Kaydet (Commit) b48f1d3f authored tarafından Just van Rossum's avatar Just van Rossum

OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.

Jack: I hope I didn't break anything for you!
üst f8d64737
......@@ -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]*"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment