summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-07-02 21:47:18 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-07-02 21:47:18 (GMT)
commit55b69e794c16d9ec201a9408f35f8fcbbae60324 (patch)
treeb96d53f0bac3b6d5fb3ee3558415afc65f6e51bf /Include
parentba4105c1335503e3d441abbd7a3e74d255ead1a5 (diff)
downloadcpython-55b69e794c16d9ec201a9408f35f8fcbbae60324.zip
cpython-55b69e794c16d9ec201a9408f35f8fcbbae60324.tar.gz
cpython-55b69e794c16d9ec201a9408f35f8fcbbae60324.tar.bz2
Oops, forgot that there are modules outside the win32 world.
Diffstat (limited to 'Include')
-rw-r--r--Include/methodobject.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 81e84ce..cd1d265 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -43,6 +43,8 @@ struct PyMethodDef {
};
typedef struct PyMethodDef PyMethodDef;
+PyAPI_FUNC(PyObject *) Py_FindMethod(PyMethodDef[], PyObject *, const char *);
+
#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
PyObject *);
@@ -68,6 +70,14 @@ PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
#define METH_COEXIST 0x0040
+typedef struct PyMethodChain {
+ PyMethodDef *methods; /* Methods of this type */
+ struct PyMethodChain *link; /* NULL or base type */
+} PyMethodChain;
+
+PyAPI_FUNC(PyObject *) Py_FindMethodInChain(PyMethodChain *, PyObject *,
+ const char *);
+
typedef struct {
PyObject_HEAD
PyMethodDef *m_ml; /* Description of the C function to call */