[Python-checkins] python/dist/src/Mac/Modules/drag _Dragmodule.c,1.13,1.14
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 23 Dec 2002 15:16:54 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/drag
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/drag
Modified Files:
_Dragmodule.c
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Index: _Dragmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/drag/_Dragmodule.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** _Dragmodule.c 19 Dec 2002 21:24:31 -0000 1.13
--- _Dragmodule.c 23 Dec 2002 23:16:22 -0000 1.14
***************
*** 85,89 ****
{
Py_XDECREF(self->sendproc);
! PyObject_Del(self);
}
--- 85,89 ----
{
Py_XDECREF(self->sendproc);
! self->ob_type->tp_free((PyObject *)self);
}
***************
*** 1136,1139 ****
--- 1136,1140 ----
return;
DragObj_Type.ob_type = &PyType_Type;
+ if (PyType_Ready(&DragObj_Type) < 0) return;
Py_INCREF(&DragObj_Type);
PyModule_AddObject(m, "DragObj", (PyObject *)&DragObj_Type);