[Python-checkins] CVS: python/dist/src/Mac/Modules/cf cfscan.py,1.3,1.4
Jack Jansen
jackjansen@users.sourceforge.net
Sun, 01 Jul 2001 15:03:57 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/cf
In directory usw-pr-cvs1:/tmp/cvs-serv15550/Python/Mac/Modules/cf
Modified Files:
cfscan.py
Log Message:
- Use weaklink generators so we can support OSX-only calls without crashing on OS9.
- Convert CFString to/from Python strings. Currently always MacRoman, to be fixed later (as is unicode support). Python->CFString conversion is automatic.
Index: cfscan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cf/cfscan.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** cfscan.py 2001/06/28 22:08:22 1.3
--- cfscan.py 2001/07/01 22:03:55 1.4
***************
*** 84,90 ****
"CFStringGetCStringPtr",
"CFStringGetCharactersPtr",
# OSX only, to be done
! "CFURLCreateWithFileSystemPath",
! "CFURLCreateStringWithFileSystemPath",
]
--- 84,92 ----
"CFStringGetCStringPtr",
"CFStringGetCharactersPtr",
+ "CFStringGetCString",
+ "CFStringGetCharacters",
# OSX only, to be done
! ## "CFURLCreateWithFileSystemPath",
! ## "CFURLCreateStringWithFileSystemPath",
]