Issue #15422: get rid of PyCFunction_New macro

This commit is contained in:
Andrew Svetlov 2012-12-25 13:32:35 +02:00
parent 914ab8420e
commit 3ba3a3ee56
9 changed files with 20 additions and 23 deletions

View file

@ -46,7 +46,7 @@ struct PyMethodDef {
};
typedef struct PyMethodDef PyMethodDef;
#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *);
PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
PyObject *);