summaryrefslogtreecommitdiffstats
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-07 10:32:29 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-07 10:32:29 (GMT)
commit9dc8d0e0a3f9520cfff61c479beea29d593e2e39 (patch)
tree275905eec5f35844095f25e9cdb8fc8577960441 /Include/methodobject.h
parent6fde390655c4d9ff3730ee0ff02187476557bc3a (diff)
downloadcpython-9dc8d0e0a3f9520cfff61c479beea29d593e2e39.zip
cpython-9dc8d0e0a3f9520cfff61c479beea29d593e2e39.tar.gz
cpython-9dc8d0e0a3f9520cfff61c479beea29d593e2e39.tar.bz2
added ml_doc and changed newmethodlist interface
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r--Include/methodobject.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 178bdfb..44664e0 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
}