[Python-checkins] CVS: python/dist/src/Python mactoolboxglue.c,1.7,1.8
Jack Jansen
jackjansen@users.sourceforge.net
2001年11月05日 06:39:19 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv23401/python/Python
Modified Files:
mactoolboxglue.c
Log Message:
Make the CoreFoundation object _New and _Convert routines available to other modules. Idea by Donovan Preston, implementaion by me.
Index: mactoolboxglue.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/mactoolboxglue.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** mactoolboxglue.c 2001年10月31日 12:11:48 1.7
--- mactoolboxglue.c 2001年11月05日 14:39:17 1.8
***************
*** 460,462 ****
--- 460,484 ----
GLUE_NEW(WindowPtr, WinObj_WhichWindow, "Carbon.Win")
+ GLUE_CONVERT(CFTypeRef, CFTypeRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFTypeRef, CFTypeRefObj_New, "Carbon.CF")
+
+ GLUE_CONVERT(CFStringRef, CFStringRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFStringRef, CFStringRefObj_New, "Carbon.CF")
+ GLUE_CONVERT(CFMutableStringRef, CFMutableStringRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFMutableStringRef, CFMutableStringRefObj_New, "Carbon.CF")
+
+ GLUE_CONVERT(CFArrayRef, CFArrayRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFArrayRef, CFArrayRefObj_New, "Carbon.CF")
+ GLUE_CONVERT(CFMutableArrayRef, CFMutableArrayRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFMutableArrayRef, CFMutableArrayRefObj_New, "Carbon.CF")
+
+ GLUE_CONVERT(CFDictionaryRef, CFDictionaryRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFDictionaryRef, CFDictionaryRefObj_New, "Carbon.CF")
+ GLUE_CONVERT(CFMutableDictionaryRef, CFMutableDictionaryRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFMutableDictionaryRef, CFMutableDictionaryRefObj_New, "Carbon.CF")
+
+ GLUE_CONVERT(CFURLRef, CFURLRefObj_Convert, "Carbon.CF")
+ GLUE_CONVERT(CFURLRef, OptionalCFURLRefObj_Convert, "Carbon.CF")
+ GLUE_NEW(CFURLRef, CFURLRefObj_New, "Carbon.CF")
+
#endif /* USE_TOOLBOX_OBJECT_GLUE */