diff options
author | Guido van Rossum <guido@python.org> | 1995-01-07 10:32:29 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-07 10:32:29 +0000 |
commit | 9dc3aa7197a4ad094bbd9743858b43a945cd7fc9 (patch) | |
tree | db355864f36012a0dddac0f8b6c4b03747b1285b /Include/methodobject.h | |
parent | 2a461c961f620cba253827d471bf172ce84951ce (diff) | |
download | cpython-9dc3aa7197a4ad094bbd9743858b43a945cd7fc9.tar.gz |
added ml_doc and changed newmethodlist interface
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r-- | Include/methodobject.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h index 178bdfb134..44664e0782 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -36,7 +36,6 @@ extern DL_IMPORT typeobject Methodtype; typedef object *(*method) FPROTO((object *, object *)); -extern object *newmethodobject PROTO((char *, method, object *, int)); extern method getmethod PROTO((object *)); extern object *getself PROTO((object *)); extern int getvarargs PROTO((object *)); @@ -44,14 +43,16 @@ extern int getvarargs PROTO((object *)); struct methodlist { char *ml_name; method ml_meth; - int ml_varargs; + int ml_flags; + char *ml_doc; }; -extern object *findmethod PROTO((struct methodlist *, object *, char *)); +extern object *newmethodobject PROTO((struct methodlist *, object *)); + +extern object *findmethod PROTO((struct methodlist[], object *, char *)); /* Flag passed to newmethodobject */ #define METH_VARARGS 0x0001 -#define METH_FREENAME 0x0100 #ifdef __cplusplus } |