chiark
/
gitweb
/
~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing for Python 2.3 and later.
[pyke]
/
catacomb-python.h
diff --git
a/catacomb-python.h
b/catacomb-python.h
index c93ef07ac25f742f9f0e709b6b5e0ab0eb06cdbc..368c7bbcd599811b07c76ac36f212dfb624c0f0b 100644
(file)
--- a/
catacomb-python.h
+++ b/
catacomb-python.h
@@
-182,6
+182,9
@@
MODULES(DO)
#undef DO
+#define FREEOBJ(obj) \
+ (((PyObject *)(obj))->ob_type->tp_free((PyObject *)(obj)))
+
/*----- Bytestrings -------------------------------------------------------*/
PyTypeObject *bytestring_pyobj;