Mercurial > cpython-lru_cache-weakref
diff Include/methodobject.h @ 48415:bd2334120a30
Oops, forgot that there are modules outside the win32 world.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Wed, 02 Jul 2008 21:47:18 +0000 |
| parents | 4025f638911f |
| children | aa1fbe321acf |
line wrap: on
line diff
--- a/Include/methodobject.h Wed Jul 02 21:41:01 2008 +0000 +++ b/Include/methodobject.h Wed Jul 02 21:47:18 2008 +0000 @@ -43,6 +43,8 @@ }; 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 @@ #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 */
