Kaydet (Commit) bf9cb3ff authored tarafından Tim Peters's avatar Tim Peters

Use function instead of macro spellings for PyObject_memorystuff.

üst c9ca5c82
...@@ -26,7 +26,7 @@ static xxobject * ...@@ -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 ...@@ -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 *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment