From b48f1d3f8a8fe68672c67921626c5df39424be37 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 12 Dec 2001 20:51:22 +0000 Subject: [PATCH] OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations. Jack: I hope I didn't break anything for you! --- Tools/bgen/bgen/scantools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py index 0619475ee2b..7ce2878fd55 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]*" + \ "\([a-zA-Z0-9_* \t]*[a-zA-Z0-9_*]\)" + \ "[ \t\n]*)[ \t\n]*"