[Zope-Checkins] CVS: Zope/lib/python/ExtensionClass - ExtensionClass.h:1.1.2.6

Jim Fulton cvs-admin at zope.org
Sat Nov 15 07:30:12 EST 2003


Update of /cvs-repository/Zope/lib/python/ExtensionClass
In directory cvs.zope.org:/tmp/cvs-serv12526

Modified Files:
      Tag: zodb33-devel-branch
	ExtensionClass.h 
Log Message:
Added comment about redefinition of PyMem_DEL and PyObject_DEL.
Also added undefs for these to avoid warnings.


=== Zope/lib/python/ExtensionClass/ExtensionClass.h 1.1.2.5 => 1.1.2.6 ===
--- Zope/lib/python/ExtensionClass/ExtensionClass.h:1.1.2.5	Wed Oct 29 10:19:01 2003
+++ Zope/lib/python/ExtensionClass/ExtensionClass.h	Sat Nov 15 07:30:10 2003
@@ -246,6 +246,15 @@
   ((PyExtensionClassCAPI != NULL) || \
    (PyExtensionClassCAPI = PyCObject_Import("ExtensionClass","CAPI2")))
 
+
+/* These are being overridded to use tp_free when used with
+   new-style classes. This is to allow old extention-class code
+   to work.
+*/
+
+#undef PyMem_DEL
+#undef PyObject_DEL
+
 #define PyMem_DEL(O)                                   \
   if (((O)->ob_type->tp_flags & Py_TPFLAGS_HAVE_CLASS) \
       && ((O)->ob_type->tp_free != NULL))              \




More information about the Zope-Checkins mailing list