[Zope3-checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - proxy.c:1.5 wrapper.c:1.15
Shane Hathaway
shane@cvs.zope.org
Thu, 8 Aug 2002 17:50:09 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv15880/lib/python/Zope/ContextWrapper
Modified Files:
proxy.c wrapper.c
Log Message:
Rearranged construction of the type structs so that mingw32 can compile
the extensions.
=== Zope3/lib/python/Zope/ContextWrapper/proxy.c 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/ContextWrapper/proxy.c:1.4 Thu Jul 18 18:43:10 2002
+++ Zope3/lib/python/Zope/ContextWrapper/proxy.c Thu Aug 8 17:50:08 2002
@@ -636,9 +636,9 @@
0, /* tp_descr_set */
0, /* tp_dictoffset */
wrap_init, /* tp_init */
- PyType_GenericAlloc, /* tp_alloc */
+ 0, /*PyType_GenericAlloc,*/ /* tp_alloc */
wrap_new, /* tp_new */
- _PyObject_GC_Del, /* tp_free */
+ 0, /*_PyObject_GC_Del,*/ /* tp_free */
};
@@ -752,6 +752,8 @@
empty_tuple = PyTuple_New(0);
ProxyType.ob_type = &PyType_Type;
+ ProxyType.tp_alloc = PyType_GenericAlloc;
+ ProxyType.tp_free = _PyObject_GC_Del;
if (PyType_Ready(&ProxyType) < 0)
return;
=== Zope3/lib/python/Zope/ContextWrapper/wrapper.c 1.14 => 1.15 ===
--- Zope3/lib/python/Zope/ContextWrapper/wrapper.c:1.14 Thu Jul 18 18:43:11 2002
+++ Zope3/lib/python/Zope/ContextWrapper/wrapper.c Thu Aug 8 17:50:08 2002
@@ -225,9 +225,9 @@
0, /* tp_descr_set */
0, /* tp_dictoffset */
wrap_init, /* tp_init */
- PyType_GenericAlloc, /* tp_alloc */
+ 0, /*PyType_GenericAlloc,*/ /* tp_alloc */
wrap_new, /* tp_new */
- _PyObject_GC_Del, /* tp_free */
+ 0, /*_PyObject_GC_Del,*/ /* tp_free */
};
@@ -676,6 +676,8 @@
WrapperType.ob_type = &PyType_Type;
WrapperType.tp_base = ProxyType;
+ WrapperType.tp_alloc = PyType_GenericAlloc;
+ WrapperType.tp_free = _PyObject_GC_Del;
if (PyType_Ready(&WrapperType) < 0)
return;