[Zodb-checkins] SVN: ZODB/branches/nikhil_n-py25/src/BTrees/TreeSetTemplate.c make C API work with Python 2.5

nikhil n nikhil.n.n at gmail.com
Mon May 14 15:37:21 EDT 2007


Log message for revision 75751:
  make C API work with Python 2.5

Changed:
  U   ZODB/branches/nikhil_n-py25/src/BTrees/TreeSetTemplate.c

-=-
Modified: ZODB/branches/nikhil_n-py25/src/BTrees/TreeSetTemplate.c
===================================================================
--- ZODB/branches/nikhil_n-py25/src/BTrees/TreeSetTemplate.c	2007-05-14 19:36:55 UTC (rev 75750)
+++ ZODB/branches/nikhil_n-py25/src/BTrees/TreeSetTemplate.c	2007-05-14 19:37:21 UTC (rev 75751)
@@ -170,17 +170,17 @@
 };
 
 static PyMappingMethods TreeSet_as_mapping = {
-  (inquiry)BTree_length,		/*mp_length*/
+  (lenfunc)BTree_length,		/*mp_length*/
 };
 
 static PySequenceMethods TreeSet_as_sequence = {
-    (inquiry)0,                     /* sq_length */
+    (lenfunc)0,                     /* sq_length */
     (binaryfunc)0,                  /* sq_concat */
-    (intargfunc)0,                  /* sq_repeat */
-    (intargfunc)0,                  /* sq_item */
-    (intintargfunc)0,               /* sq_slice */
-    (intobjargproc)0,               /* sq_ass_item */
-    (intintobjargproc)0,            /* sq_ass_slice */
+    (ssizeargfunc)0,                  /* sq_repeat */
+    (ssizeargfunc)0,                  /* sq_item */
+    (ssizessizeargfunc)0,               /* sq_slice */
+    (ssizeobjargproc)0,               /* sq_ass_item */
+    (ssizessizeobjargproc)0,            /* sq_ass_slice */
     (objobjproc)BTree_contains,     /* sq_contains */
     0,                              /* sq_inplace_concat */
     0,                              /* sq_inplace_repeat */
@@ -225,7 +225,7 @@
 	    Py_TPFLAGS_BASETYPE, 	/* tp_flags */
     0,					/* tp_doc */
     (traverseproc)BTree_traverse,	/* tp_traverse */
-    (inquiry)BTree_tp_clear,		/* tp_clear */
+    (lenfunc)BTree_tp_clear,		/* tp_clear */
     0,					/* tp_richcompare */
     0,					/* tp_weaklistoffset */
     (getiterfunc)BTree_getiter,		/* tp_iter */



More information about the Zodb-checkins mailing list