summaryrefslogtreecommitdiffstats
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-16 13:07:24 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-16 13:07:24 (GMT)
commitc06022966f58b7130e0a8b7150d1955865c84dc8 (patch)
tree61b860da9f4a15dd879cc7bc1cd0395108e1fc92 /Include/methodobject.h
parent3ddee714d1d4473f8fa04a6d8356d3eafb695a50 (diff)
downloadcpython-c06022966f58b7130e0a8b7150d1955865c84dc8.zip
cpython-c06022966f58b7130e0a8b7150d1955865c84dc8.tar.gz
cpython-c06022966f58b7130e0a8b7150d1955865c84dc8.tar.bz2
Add "varargs" attribute.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r--Include/methodobject.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 262208d..e8d795e 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -30,13 +30,15 @@ extern typeobject Methodtype;
typedef object *(*method) FPROTO((object *, object *));
-extern object *newmethodobject PROTO((char *, method, object *));
+extern object *newmethodobject PROTO((char *, method, object *, int));
extern method getmethod PROTO((object *));
extern object *getself PROTO((object *));
+extern int getvarargs PROTO((object *));
struct methodlist {
- char *ml_name;
- method ml_meth;
+ char *ml_name;
+ method ml_meth;
+ int ml_varargs;
};
extern object *findmethod PROTO((struct methodlist *, object *, char *));