Fixing for Python 2.3 and later.
authormdw <mdw>
Wed, 27 Apr 2005 23:40:07 +0000 (23:40 +0000)
committermdw <mdw>
Wed, 27 Apr 2005 23:40:07 +0000 (23:40 +0000)
catacomb-python.h

index c93ef07..368c7bb 100644 (file)
 MODULES(DO)
 #undef DO
 
+#define FREEOBJ(obj)                                                   \
+  (((PyObject *)(obj))->ob_type->tp_free((PyObject *)(obj)))
+
 /*----- Bytestrings -------------------------------------------------------*/
 
 PyTypeObject *bytestring_pyobj;