static void mp_pydealloc(PyObject *o)
{
MP_DROP(MP_X(o));
- PyObject_DEL(o);
+ FREEOBJ(o);
}
static PyObject *mp_pyrepr(PyObject *o)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mp_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
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)
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpmont_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void mpbarrett_pydealloc(PyObject *me)
{
mpbarrett_destroy(MPBARRETT_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *mpbarrett_pynew(PyTypeObject *ty,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpbarrett_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void mpreduce_pydealloc(PyObject *me)
{
mpreduce_destroy(MPREDUCE_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *mpreduce_pynew(PyTypeObject *ty,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpreduce_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
mpcrt_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
gf_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
static void gfreduce_pydealloc(PyObject *me)
{
gfreduce_destroy(GFREDUCE_PY(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyObject *gfreduce_pynew(PyTypeObject *ty,
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
gfreduce_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};
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");
}
{
gfn_destroy(GFN_PTON(me));
gfn_destroy(GFN_NTOP(me));
- PyObject_DEL(me);
+ FREEOBJ(me);
}
static PyGetSetDef gfn_pygetset[] = {
0, /* @tp_init@ */
PyType_GenericAlloc, /* @tp_alloc@ */
gfn_pynew, /* @tp_new@ */
- _PyObject_Del, /* @tp_free@ */
+ 0, /* @tp_free@ */
0 /* @tp_is_gc@ */
};