[Zope3-checkins] CVS: Zope3/lib/python/Persistence/BTrees - BTreeItemsTemplate.c:1.11 BTreeModuleTemplate.c:1.11 BTreeTemplate.c:1.43 BucketTemplate.c:1.18 SetTemplate.c:1.6 TreeSetTemplate.c:1.6
Shane Hathaway
shane@cvs.zope.org
Thu, 8 Aug 2002 17:50:39 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv15880/lib/python/Persistence/BTrees
Modified Files:
BTreeItemsTemplate.c BTreeModuleTemplate.c BTreeTemplate.c
BucketTemplate.c SetTemplate.c TreeSetTemplate.c
Log Message:
Rearranged construction of the type structs so that mingw32 can compile
the extensions.
=== Zope3/lib/python/Persistence/BTrees/BTreeItemsTemplate.c 1.10 => 1.11 ===
--- Zope3/lib/python/Persistence/BTrees/BTreeItemsTemplate.c:1.10 Thu Jul 18 18:43:10 2002
+++ Zope3/lib/python/Persistence/BTrees/BTreeItemsTemplate.c Thu Aug 8 17:50:08 2002
@@ -683,7 +683,7 @@
0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /*PyObject_GenericGetAttr,*/ /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
=== Zope3/lib/python/Persistence/BTrees/BTreeModuleTemplate.c 1.10 => 1.11 ===
--- Zope3/lib/python/Persistence/BTrees/BTreeModuleTemplate.c:1.10 Thu Jul 18 18:43:10 2002
+++ Zope3/lib/python/Persistence/BTrees/BTreeModuleTemplate.c Thu Aug 8 17:50:08 2002
@@ -447,6 +447,11 @@
BTreeItemsType.ob_type = &PyType_Type;
BTreeIter_Type.ob_type = &PyType_Type;
+ BTreeIter_Type.tp_getattro = PyObject_GenericGetAttr;
+ BucketType.tp_new = PyType_GenericNew;
+ SetType.tp_new = PyType_GenericNew;
+ BTreeType.tp_new = PyType_GenericNew;
+ TreeSetType.tp_new = PyType_GenericNew;
if (!init_persist_type(&BucketType))
return;
if (!init_persist_type(&BTreeType))
=== Zope3/lib/python/Persistence/BTrees/BTreeTemplate.c 1.42 => 1.43 ===
--- Zope3/lib/python/Persistence/BTrees/BTreeTemplate.c:1.42 Wed Jul 24 18:52:12 2002
+++ Zope3/lib/python/Persistence/BTrees/BTreeTemplate.c Thu Aug 8 17:50:08 2002
@@ -1981,5 +1981,5 @@
0, /* tp_dictoffset */
BTree_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ 0, /*PyType_GenericNew,*/ /* tp_new */
};
=== Zope3/lib/python/Persistence/BTrees/BucketTemplate.c 1.17 => 1.18 ===
--- Zope3/lib/python/Persistence/BTrees/BucketTemplate.c:1.17 Thu Jul 18 18:43:10 2002
+++ Zope3/lib/python/Persistence/BTrees/BucketTemplate.c Thu Aug 8 17:50:08 2002
@@ -1616,7 +1616,7 @@
0, /* tp_dictoffset */
Bucket_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ 0, /*PyType_GenericNew,*/ /* tp_new */
};
static int
=== Zope3/lib/python/Persistence/BTrees/SetTemplate.c 1.5 => 1.6 ===
--- Zope3/lib/python/Persistence/BTrees/SetTemplate.c:1.5 Sat Jun 22 03:18:11 2002
+++ Zope3/lib/python/Persistence/BTrees/SetTemplate.c Thu Aug 8 17:50:08 2002
@@ -318,7 +318,7 @@
0, /* tp_dictoffset */
Set_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ 0, /*PyType_GenericNew,*/ /* tp_new */
};
static int
=== Zope3/lib/python/Persistence/BTrees/TreeSetTemplate.c 1.5 => 1.6 ===
--- Zope3/lib/python/Persistence/BTrees/TreeSetTemplate.c:1.5 Sat Jun 22 03:18:11 2002
+++ Zope3/lib/python/Persistence/BTrees/TreeSetTemplate.c Thu Aug 8 17:50:08 2002
@@ -226,5 +226,5 @@
0, /* tp_dictoffset */
TreeSet_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ 0, /*PyType_GenericNew,*/ /* tp_new */
};