[Python-checkins] python/dist/src/Mac/Modules/list _Listmodule.c,1.15,1.16
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 23 Dec 2002 15:16:55 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/list
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/list
Modified Files:
_Listmodule.c
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Index: _Listmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/list/_Listmodule.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** _Listmodule.c 19 Dec 2002 21:24:33 -0000 1.15
--- _Listmodule.c 23 Dec 2002 23:16:23 -0000 1.16
***************
*** 113,117 ****
SetListRefCon(self->ob_itself, (long)0);
if (self->ob_must_be_disposed && self->ob_itself) LDispose(self->ob_itself);
! PyObject_Del(self);
}
--- 113,117 ----
SetListRefCon(self->ob_itself, (long)0);
if (self->ob_must_be_disposed && self->ob_itself) LDispose(self->ob_itself);
! self->ob_type->tp_free((PyObject *)self);
}
***************
*** 1152,1155 ****
--- 1152,1156 ----
return;
List_Type.ob_type = &PyType_Type;
+ if (PyType_Ready(&List_Type) < 0) return;
Py_INCREF(&List_Type);
PyModule_AddObject(m, "List", (PyObject *)&List_Type);