0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 08:52:25 +01:00
cpython/Include/methodobject.h

19 lines
462 B
C
Raw Normal View History

1990-10-14 13:07:46 +01:00
/* Method object interface */
extern typeobject Methodtype;
#define is_methodobject(op) ((op)->ob_type == &Methodtype)
typedef object *(*method) FPROTO((object *, object *));
extern object *newmethodobject PROTO((char *, method, object *));
extern method getmethod PROTO((object *));
extern object *getself PROTO((object *));
1990-12-20 16:06:42 +01:00
struct methodlist {
char *ml_name;
method ml_meth;
};
extern object *findmethod PROTO((struct methodlist *, object *, char *));