[Python-checkins] python/dist/src/Mac/Modules/app _Appmodule.c,1.16,1.17

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


Update of /cvsroot/python/python/dist/src/Mac/Modules/app
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/app
Modified Files:
	_Appmodule.c 
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
 deallocator calls.
Index: _Appmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/app/_Appmodule.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** _Appmodule.c	19 Dec 2002 21:24:28 -0000	1.16
--- _Appmodule.c	23 Dec 2002 23:16:20 -0000	1.17
***************
*** 70,74 ****
 {
 	/* Cleanup of self->ob_itself goes here */
! 	PyObject_Del(self);
 }
 
--- 70,74 ----
 {
 	/* Cleanup of self->ob_itself goes here */
! 	self->ob_type->tp_free((PyObject *)self);
 }
 
***************
*** 1819,1822 ****
--- 1819,1823 ----
 		return;
 	ThemeDrawingState_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&ThemeDrawingState_Type) < 0) return;
 	Py_INCREF(&ThemeDrawingState_Type);
 	PyModule_AddObject(m, "ThemeDrawingState", (PyObject *)&ThemeDrawingState_Type);

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