Skip to content

Commit

Permalink
added ml_doc and changed newmethodlist interface
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jan 7, 1995
1 parent 6fde390 commit 9dc8d0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Include/methodobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,23 @@ 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 *));

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
}
Expand Down

0 comments on commit 9dc8d0e

Please sign in to comment.