[Python-checkins] python/dist/src/Mac/Modules/win _Winmodule.c,1.16,1.17
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 23 Dec 2002 15:16:27 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/win
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/win
Modified Files:
_Winmodule.c
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Index: _Winmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/_Winmodule.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** _Winmodule.c 19 Dec 2002 21:24:35 -0000 1.16
--- _Winmodule.c 23 Dec 2002 23:16:25 -0000 1.17
***************
*** 111,115 ****
self->ob_itself = NULL;
self->ob_freeit = NULL;
! PyObject_Del(self);
}
--- 111,115 ----
self->ob_itself = NULL;
self->ob_freeit = NULL;
! self->ob_type->tp_free((PyObject *)self);
}
***************
*** 3224,3227 ****
--- 3224,3228 ----
return;
Window_Type.ob_type = &PyType_Type;
+ if (PyType_Ready(&Window_Type) < 0) return;
Py_INCREF(&Window_Type);
PyModule_AddObject(m, "Window", (PyObject *)&Window_Type);