]> granicus.if.org Git - python/commitdiff
Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core module...
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 26 Dec 2012 20:52:04 +0000 (22:52 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 26 Dec 2012 20:52:04 +0000 (22:52 +0200)
Include/methodobject.h

index 28781d8d1c88b0b39d46bca93675b2e53036e47c..3cc2ea9308f5e6703c8dedf34c98b319c88d204a 100644 (file)
@@ -46,7 +46,7 @@ struct PyMethodDef {
 };
 typedef struct PyMethodDef PyMethodDef;
 
-PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *);
+#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
 PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, 
                                          PyObject *);