summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/list
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-23 23:16:25 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-23 23:16:25 (GMT)
commitb734869f46cdbbfff231fdab49dc0ad4e3b45623 (patch)
tree54d71b8e166220f0c933ec78490a5a6eb850856d /Mac/Modules/list
parent74d93c81c190f9dfd7302e17536a49b8dd4f7da6 (diff)
downloadcpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.zip
cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.gz
cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.bz2
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct deallocator calls.
Diffstat (limited to 'Mac/Modules/list')
-rw-r--r--Mac/Modules/list/_Listmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Modules/list/_Listmodule.c b/Mac/Modules/list/_Listmodule.c
index 5cd007e..05af28e 100644
--- a/Mac/Modules/list/_Listmodule.c
+++ b/Mac/Modules/list/_Listmodule.c
@@ -112,7 +112,7 @@ static void ListObj_dealloc(ListObject *self)
self->ob_ldef_func = NULL;
SetListRefCon(self->ob_itself, (long)0);
if (self->ob_must_be_disposed && self->ob_itself) LDispose(self->ob_itself);
- PyObject_Del(self);
+ self->ob_type->tp_free((PyObject *)self);
}
static PyObject *ListObj_LAddColumn(ListObject *_self, PyObject *_args)
@@ -1151,6 +1151,7 @@ void init_List(void)
PyDict_SetItemString(d, "Error", List_Error) != 0)
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);
/* Backward-compatible name */