diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-02 21:11:16 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-02 21:11:16 (GMT) |
commit | 3c16165c432206f76c654a0cd7e092f776f21433 (patch) | |
tree | bae50cd64129712fa03a1bff267479edf8d4406e | |
parent | e94c679df0b632bc929936ca54f0de006e1a6dc2 (diff) | |
download | cpython-3c16165c432206f76c654a0cd7e092f776f21433.zip cpython-3c16165c432206f76c654a0cd7e092f776f21433.tar.gz cpython-3c16165c432206f76c654a0cd7e092f776f21433.tar.bz2 |
Change type of tp_reserved from cmpfunc to (void *); remove definition
of cmpfunc.
-rw-r--r-- | Include/object.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h index 592ee02..c71bca6 100644 --- a/Include/object.h +++ b/Include/object.h @@ -274,7 +274,6 @@ typedef PyObject *(*getattrfunc)(PyObject *, char *); typedef PyObject *(*getattrofunc)(PyObject *, PyObject *); typedef int (*setattrfunc)(PyObject *, char *, PyObject *); typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *); -typedef int (*cmpfunc)(PyObject *, PyObject *); typedef PyObject *(*reprfunc)(PyObject *); typedef long (*hashfunc)(PyObject *); typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int); @@ -297,7 +296,7 @@ typedef struct _typeobject { printfunc tp_print; getattrfunc tp_getattr; setattrfunc tp_setattr; - cmpfunc tp_reserved; + void *tp_reserved; /* formerly known as tp_compare */ reprfunc tp_repr; /* Method suites for standard classes */ |