[Python-checkins] CVS: python/dist/src/Mac/Modules/cf cfscan.py,1.3,1.4

Jack Jansen jackjansen@users.sourceforge.net
2001年7月01日 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",
 			]
 

AltStyle によって変換されたページ (->オリジナル) /