[Zope3-checkins] CVS: Zope3/lib/python/Persistence - cPersistence.c:1.16

Shane Hathaway shane@cvs.zope.org
Thu, 8 Aug 2002 17:50:39 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv15880/lib/python/Persistence

Modified Files:
	cPersistence.c 
Log Message:
Rearranged construction of the type structs so that mingw32 can compile
the extensions.


=== Zope3/lib/python/Persistence/cPersistence.c 1.15 => 1.16 ===
--- Zope3/lib/python/Persistence/cPersistence.c:1.15	Wed Jul 24 18:55:50 2002
+++ Zope3/lib/python/Persistence/cPersistence.c	Thu Aug  8 17:50:08 2002
@@ -704,7 +704,7 @@
     0,					/* tp_dictoffset */
     0,					/* tp_init */
     0,					/* tp_alloc */
-    PyType_GenericNew,			/* tp_new */
+    0, /*PyType_GenericNew,*/		/* tp_new */
 };
 
 static PyTypeObject PyPersist_Type = {
@@ -747,7 +747,7 @@
     offsetof(PyPersistObject, po_dict),	/* tp_dictoffset */
     0,					/* tp_init */
     0,					/* tp_alloc */
-    PyType_GenericNew,			/* tp_new */
+    0, /*PyType_GenericNew,*/		/* tp_new */
 };
 
 static PyMethodDef PyPersist_methods[] = {
@@ -807,7 +807,9 @@
     PyObject *m, *d, *v;
 
     PyPersistBase_Type.ob_type = &PyType_Type;
+    PyPersistBase_Type.tp_new = PyType_GenericNew;
     PyPersist_Type.ob_type = &PyType_Type;
+    PyPersist_Type.tp_new = PyType_GenericNew;
     if (PyType_Ready(&PyPersistBase_Type) < 0)
 	return;
     if (PyType_Ready(&PyPersist_Type) < 0)