[Python-checkins] python/dist/src/Mac/Modules/ae _AEmodule.c,1.17,1.18
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 23 Dec 2002 15:16:52 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/ae
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/ae
Modified Files:
_AEmodule.c
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Index: _AEmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ae/_AEmodule.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** _AEmodule.c 19 Dec 2002 21:24:28 -0000 1.17
--- _AEmodule.c 23 Dec 2002 23:16:20 -0000 1.18
***************
*** 95,99 ****
{
AEDisposeDesc(&self->ob_itself);
! PyObject_Del(self);
}
--- 95,99 ----
{
AEDisposeDesc(&self->ob_itself);
! self->ob_type->tp_free((PyObject *)self);
}
***************
*** 1435,1438 ****
--- 1435,1439 ----
return;
AEDesc_Type.ob_type = &PyType_Type;
+ if (PyType_Ready(&AEDesc_Type) < 0) return;
Py_INCREF(&AEDesc_Type);
PyModule_AddObject(m, "AEDesc", (PyObject *)&AEDesc_Type);