summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-12-12 20:51:22 (GMT)
committerJust van Rossum <just@letterror.com>2001-12-12 20:51:22 (GMT)
commitb48f1d3f8a8fe68672c67921626c5df39424be37 (patch)
tree6e58d5774451e0825c8b4ea154709c7b07ddd800 /Tools
parentf8d6473782dc34826e43e2ca624326b542709dae (diff)
downloadcpython-b48f1d3f8a8fe68672c67921626c5df39424be37.zip
cpython-b48f1d3f8a8fe68672c67921626c5df39424be37.tar.gz
cpython-b48f1d3f8a8fe68672c67921626c5df39424be37.tar.bz2
OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Jack: I hope I didn't break anything for you!
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/scantools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py
index 0619475..7ce2878 100644
--- a/Tools/bgen/bgen/scantools.py
+++ b/Tools/bgen/bgen/scantools.py
@@ -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]*"