mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Use function instead of macro spellings for PyObject_memorystuff.
This commit is contained in:
parent
c9ca5c82f9
commit
bf9cb3ff1a
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ static xxobject *
|
||||||
newxxobject(PyObject *arg)
|
newxxobject(PyObject *arg)
|
||||||
{
|
{
|
||||||
xxobject *xp;
|
xxobject *xp;
|
||||||
xp = PyObject_NEW(xxobject, &Xxtype);
|
xp = PyObject_New(xxobject, &Xxtype);
|
||||||
if (xp == NULL)
|
if (xp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
xp->x_attr = NULL;
|
xp->x_attr = NULL;
|
||||||
|
|
@ -39,7 +39,7 @@ static void
|
||||||
xx_dealloc(xxobject *xp)
|
xx_dealloc(xxobject *xp)
|
||||||
{
|
{
|
||||||
Py_XDECREF(xp->x_attr);
|
Py_XDECREF(xp->x_attr);
|
||||||
PyObject_DEL(xp);
|
PyObject_Del(xp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue