diff options
Diffstat (limited to 'Include/descrobject.h')
-rw-r--r-- | Include/descrobject.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h index 9a07110..918dd5a 100644 --- a/Include/descrobject.h +++ b/Include/descrobject.h @@ -14,15 +14,22 @@ typedef struct PyGetSetDef { typedef PyObject *(*wrapperfunc)(PyObject *self, PyObject *args, void *wrapped); +typedef PyObject *(*wrapperfunc_kwds)(PyObject *self, PyObject *args, + void *wrapped, PyObject *kwds); + struct wrapperbase { char *name; int offset; void *function; wrapperfunc wrapper; char *doc; + int flags; PyObject *name_strobj; }; +/* Flags for above struct */ +#define PyWrapperFlag_KEYWORDS 1 /* wrapper function takes keyword args */ + /* Various kinds of descriptor objects */ #define PyDescr_COMMON \ |