diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-04-12 03:05:37 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-04-12 03:05:37 (GMT) |
commit | 7465ad2fc982ca15b7f1c568fb6044d2beac46e0 (patch) | |
tree | 40eba19737b3f88e1c456f70c2db95fb8d9dcd1d /Objects | |
parent | 510492e98552131b1326bb5caa4e347fc15389f8 (diff) | |
download | cpython-7465ad2fc982ca15b7f1c568fb6044d2beac46e0.zip cpython-7465ad2fc982ca15b7f1c568fb6044d2beac46e0.tar.gz cpython-7465ad2fc982ca15b7f1c568fb6044d2beac46e0.tar.bz2 |
Remove PyMalloc_New and PyMalloc_Del.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/sliceobject.c | 4 | ||||
-rw-r--r-- | Objects/structseq.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index 108ab27..7562d34 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -60,7 +60,7 @@ PyObject _Py_EllipsisObject = { PyObject * PySlice_New(PyObject *start, PyObject *stop, PyObject *step) { - PySliceObject *obj = PyMalloc_New(PySliceObject, &PySlice_Type); + PySliceObject *obj = PyObject_New(PySliceObject, &PySlice_Type); if (obj == NULL) return NULL; @@ -115,7 +115,7 @@ slice_dealloc(PySliceObject *r) Py_DECREF(r->step); Py_DECREF(r->start); Py_DECREF(r->stop); - PyMalloc_Del(r); + PyObject_Del(r); } static PyObject * diff --git a/Objects/structseq.c b/Objects/structseq.c index 7231ce1..fdc56cb 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -22,7 +22,7 @@ PyStructSequence_New(PyTypeObject *type) { PyStructSequence *obj; - obj = PyMalloc_New(PyStructSequence, type); + obj = PyObject_New(PyStructSequence, type); obj->ob_size = VISIBLE_SIZE_TP(type); return (PyObject*) obj; @@ -37,7 +37,7 @@ structseq_dealloc(PyStructSequence *obj) for (i = 0; i < size; ++i) { Py_XDECREF(obj->ob_item[i]); } - PyMalloc_Del(obj); + PyObject_Del(obj); } static int |