[Python-checkins] python/dist/src/Python mactoolboxglue.c,1.15,1.16

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 17 Jan 2003 15:11:20 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv2704/Python

Modified Files:
	mactoolboxglue.c 
Log Message:
It turns out that some calls return AEDesc records that are "borrowed",
the AEDesc data shouldn't be disposed when the Python object is.

Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.



Index: mactoolboxglue.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/mactoolboxglue.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** mactoolboxglue.c	23 Dec 2002 21:03:36 -0000	1.15
--- mactoolboxglue.c	17 Jan 2003 23:11:17 -0000	1.16
***************
*** 535,538 ****
--- 535,539 ----
  
  GLUE_NEW(AppleEvent *, AEDesc_New, "Carbon.AE") /* XXXX Why by address? */
+ GLUE_NEW(AppleEvent *, AEDesc_NewBorrowed, "Carbon.AE")
  GLUE_CONVERT(AppleEvent, AEDesc_Convert, "Carbon.AE")