[Python-checkins] python/dist/src/Tools/bgen/bgen macsupport.py,1.27,1.28
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Thu, 22 Aug 2002 16:30:50 -0700
Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory usw-pr-cvs1:/tmp/cvs-serv18635/Tools/bgen/bgen
Modified Files:
macsupport.py
Log Message:
Moved CoreFoundation type support to bgen/macsupport.
Index: macsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/macsupport.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** macsupport.py 18 Mar 2002 15:24:22 -0000 1.27
--- macsupport.py 22 Aug 2002 23:30:48 -0000 1.28
***************
*** 91,94 ****
--- 91,105 ----
EventRecord_ptr = EventRecord
+ # CoreFoundation datatypes
+ CFTypeRef = OpaqueByValueType("CFTypeRef", "CFTypeRefObj")
+ CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
+ CFMutableStringRef = OpaqueByValueType("CFMutableStringRef", "CFMutableStringRefObj")
+ CFArrayRef = OpaqueByValueType("CFArrayRef", "CFArrayRefObj")
+ CFMutableArrayRef = OpaqueByValueType("CFMutableArrayRef", "CFMutableArrayRefObj")
+ CFDictionaryRef = OpaqueByValueType("CFDictionaryRef", "CFDictionaryRefObj")
+ CFMutableDictionaryRef = OpaqueByValueType("CFMutableDictionaryRef", "CFMutableDictionaryRefObj")
+ CFURLRef = OpaqueByValueType("CFURLRef", "CFURLRefObj")
+ OptionalCFURLRef = OpaqueByValueType("CFURLRef", "OptionalCFURLRefObj")
+
# OSErr is special because it is turned into an exception
# (Could do this with less code using a variant of mkvalue("O&")?)