[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen scantools.py,1.24,1.25
Just van Rossum
jvr@users.sourceforge.net
Wed, 12 Dec 2001 12:51:24 -0800
Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory usw-pr-cvs1:/tmp/cvs-serv20139
Modified Files:
scantools.py
Log Message:
OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Jack: I hope I didn't break anything for you!
Index: scantools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/scantools.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** scantools.py 2001/10/30 13:11:24 1.24
--- scantools.py 2001/12/12 20:51:22 1.25
***************
*** 586,591 ****
def initpatterns(self):
Scanner.initpatterns(self)
! 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_*]\)" + \
--- 586,591 ----
def initpatterns(self):
Scanner.initpatterns(self)
! 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_*]\)" + \