[Python-checkins] r69218 - python/branches/py3k/Include/object.h
mark.dickinson
python-checkins at python.org
Mon Feb 2 22:11:16 CET 2009
Author: mark.dickinson
Date: Mon Feb 2 22:11:16 2009
New Revision: 69218
Log:
Change type of tp_reserved from cmpfunc to (void *); remove definition
of cmpfunc.
Modified:
python/branches/py3k/Include/object.h
Modified: python/branches/py3k/Include/object.h
==============================================================================
--- python/branches/py3k/Include/object.h (original)
+++ python/branches/py3k/Include/object.h Mon Feb 2 22:11:16 2009
@@ -274,7 +274,6 @@
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 @@
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 */
More information about the Python-checkins
mailing list