mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
added findmethodinchain and methodchain data types
This commit is contained in:
parent
5279ec683a
commit
6978503235
3 changed files with 60 additions and 23 deletions
|
@ -57,6 +57,14 @@ extern PyObject *PyCFunction_New
|
|||
/* Flag passed to newmethodobject */
|
||||
#define METH_VARARGS 0x0001
|
||||
|
||||
typedef struct PyMethodChain {
|
||||
PyMethodDef *methods; /* Methods of this type */
|
||||
struct PyMethodChain *link; /* NULL or base type */
|
||||
} PyMethodChain;
|
||||
|
||||
extern PyObject *Py_FindMethodInChain
|
||||
Py_PROTO((PyMethodChain *, PyObject *, char *));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -38,6 +38,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
/* typedef ANY *PyUnivPtr; */
|
||||
#define methodlist PyMethodDef
|
||||
#define methodchain PyMethodChain
|
||||
|
||||
#define None Py_None
|
||||
#define False Py_False
|
||||
|
@ -290,6 +291,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#define newrangeobject PyRange_New
|
||||
#define method PyCFunction
|
||||
#define findmethod Py_FindMethod
|
||||
#define findmethodinchain Py_FindMethodInChain
|
||||
#define getmethod PyCFunction_GetFunction
|
||||
#define getself PyCFunction_GetSelf
|
||||
#define getvarargs PyCFunction_IsVarArgs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue