X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/d7ab1bab81155baa763449d5afa81e16df98dbe7..df9f83669cecb76bb6ab25f42ce25d060f6cf98d:/mp.c?ds=inline diff --git a/mp.c b/mp.c index a2bd7dc..e14b3a0 100644 --- a/mp.c +++ b/mp.c @@ -179,7 +179,7 @@ end: static void mp_pydealloc(PyObject *o) { MP_DROP(MP_X(o)); - PyObject_DEL(o); + FREEOBJ(o); } static PyObject *mp_pyrepr(PyObject *o) @@ -863,7 +863,7 @@ Notes:\n\ 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ mp_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -1102,7 +1102,7 @@ end: static void mpmont_pydealloc(PyObject *me) { mpmont_destroy(MPMONT_PY(me)); - PyObject_DEL(me); + FREEOBJ(me); } static PyObject *mpmont_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) @@ -1201,7 +1201,7 @@ static PyTypeObject *mpmont_pytype, mpmont_pytype_skel = { 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ mpmont_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -1255,7 +1255,7 @@ end: static void mpbarrett_pydealloc(PyObject *me) { mpbarrett_destroy(MPBARRETT_PY(me)); - PyObject_DEL(me); + FREEOBJ(me); } static PyObject *mpbarrett_pynew(PyTypeObject *ty, @@ -1340,7 +1340,7 @@ static PyTypeObject *mpbarrett_pytype, mpbarrett_pytype_skel = { 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ mpbarrett_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -1384,7 +1384,7 @@ end: static void mpreduce_pydealloc(PyObject *me) { mpreduce_destroy(MPREDUCE_PY(me)); - PyObject_DEL(me); + FREEOBJ(me); } static PyObject *mpreduce_pynew(PyTypeObject *ty, @@ -1468,7 +1468,7 @@ static PyTypeObject *mpreduce_pytype, mpreduce_pytype_skel = { 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ mpreduce_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -1637,7 +1637,7 @@ static PyTypeObject *mpcrt_pytype, mpcrt_pytype_skel = { 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ mpcrt_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -1932,7 +1932,7 @@ Notes:\n\ 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ gf_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -2001,7 +2001,7 @@ end: static void gfreduce_pydealloc(PyObject *me) { gfreduce_destroy(GFREDUCE_PY(me)); - PyObject_DEL(me); + FREEOBJ(me); } static PyObject *gfreduce_pynew(PyTypeObject *ty, @@ -2085,7 +2085,7 @@ static PyTypeObject *gfreduce_pytype, gfreduce_pytype_skel = { 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ gfreduce_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ }; @@ -2114,7 +2114,7 @@ static PyObject *gfn_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) goto end; gg = PyObject_New(gfn_pyobj, ty); if (gfn_create(p, beta, &gg->ntop, &gg->pton)) { - PyObject_DEL(gg); + FREEOBJ(gg); gg = 0; VALERR("can't invert transformation matrix"); } @@ -2156,7 +2156,7 @@ static void gfn_pydealloc(PyObject *me) { gfn_destroy(GFN_PTON(me)); gfn_destroy(GFN_NTOP(me)); - PyObject_DEL(me); + FREEOBJ(me); } static PyGetSetDef gfn_pygetset[] = { @@ -2220,7 +2220,7 @@ and normal basis representations.", 0, /* @tp_init@ */ PyType_GenericAlloc, /* @tp_alloc@ */ gfn_pynew, /* @tp_new@ */ - _PyObject_Del, /* @tp_free@ */ + 0, /* @tp_free@ */ 0 /* @tp_is_gc@ */ };