[Python-checkins] python/dist/src/Mac/Modules/ibcarbon _IBCarbon.c,1.6,1.7

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年12月23日 15:16:55 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/ibcarbon
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/ibcarbon
Modified Files:
	_IBCarbon.c 
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
 deallocator calls.
Index: _IBCarbon.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ibcarbon/_IBCarbon.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** _IBCarbon.c	19 Dec 2002 21:24:33 -0000	1.6
--- _IBCarbon.c	23 Dec 2002 23:16:22 -0000	1.7
***************
*** 56,60 ****
 {
 	DisposeNibReference(self->ob_itself);
! 	PyObject_Del(self);
 }
 
--- 56,60 ----
 {
 	DisposeNibReference(self->ob_itself);
! 	self->ob_type->tp_free((PyObject *)self);
 }
 
***************
*** 257,260 ****
--- 257,261 ----
 		return;
 	IBNibRef_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&IBNibRef_Type) < 0) return;
 	Py_INCREF(&IBNibRef_Type);
 	PyModule_AddObject(m, "IBNibRef", (PyObject *)&IBNibRef_Type);

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