[Python-checkins] CVS: python/dist/src/Mac/Modules/cf cfscan.py,1.4,1.5
Jack Jansen
jackjansen@users.sourceforge.net
Tue, 17 Jul 2001 13:47:10 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/cf
In directory usw-pr-cvs1:/tmp/cvs-serv28538/Python/Mac/Modules/cf
Modified Files:
cfscan.py
Log Message:
Used an adapted MethodGenerator to generate methods too for functions that have the object as the second arg after a first CFAllocatorRef arg (which we pass as NULL always anyway).
Index: cfscan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cf/cfscan.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** cfscan.py 2001/07/01 22:03:55 1.4
--- cfscan.py 2001/07/17 20:47:08 1.5
***************
*** 59,62 ****
--- 59,68 ----
classname = "Method"
listname = t + "_methods"
+ # Special case for the silly first AllocatorRef argument
+ if t == 'CFAllocatorRef' and m == 'InMode' and len(arglist) > 1:
+ t, n, m = arglist[1]
+ if t in OBJECTS and m == "InMode":
+ classname = "MethodSkipArg1"
+ listname = t + "_methods"
return classname, listname
***************
*** 86,92 ****
"CFStringGetCString",
"CFStringGetCharacters",
! # OSX only, to be done
! ## "CFURLCreateWithFileSystemPath",
! ## "CFURLCreateStringWithFileSystemPath",
]
--- 92,96 ----
"CFStringGetCString",
"CFStringGetCharacters",
! "CFURLCreateStringWithFileSystemPath", # Gone in later releases
]