[Zope3-checkins] CVS: Zope3/lib/python/Zope/Security - _Proxy.c:1.5

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


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

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


=== Zope3/lib/python/Zope/Security/_Proxy.c 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/Security/_Proxy.c:1.4	Thu Jul 18 18:43:11 2002
+++ Zope3/lib/python/Zope/Security/_Proxy.c	Thu Aug  8 17:50:09 2002
@@ -836,9 +836,9 @@
 	0,					/* tp_descr_set */
 	0,					/* tp_dictoffset */
 	0,					/* tp_init */
-	PyType_GenericAlloc,			/* tp_alloc */
+	0, /*PyType_GenericAlloc,*/		/* tp_alloc */
 	proxy_new,				/* tp_new */
-	_PyObject_GC_Del,			/* tp_free */
+	0, /*_PyObject_GC_Del,*/		/* tp_free */
 };
 
 static PyObject *
@@ -896,6 +896,8 @@
 	if (! __module__str) return;
 
 	ProxyType.ob_type = &PyType_Type;
+	ProxyType.tp_alloc = PyType_GenericAlloc;
+	ProxyType.tp_free = _PyObject_GC_Del;
 	if (PyType_Ready(&ProxyType) < 0)
 		return;