Skip to content

Commit

Permalink
Change type of tp_reserved from cmpfunc to (void *); remove definition
Browse files Browse the repository at this point in the history
of cmpfunc.
  • Loading branch information
mdickinson committed Feb 2, 2009
1 parent e94c679 commit 3c16165
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 */
Expand Down

0 comments on commit 3c16165

Please sign in to comment.