Rev 4773: add Py_REFCNT to the python-compat module. in lp:///~jameinel/bzr/2.1-static-tuple-no-use
John Arbash Meinel
john at arbash-meinel.com
Mon Oct 12 20:00:12 BST 2009
At lp:///~jameinel/bzr/2.1-static-tuple-no-use
------------------------------------------------------------
revno: 4773
revision-id: john at arbash-meinel.com-20091012185922-uo30yefgli6n57bc
parent: john at arbash-meinel.com-20091012181421-6s3yxopo9s40wqjr
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1-static-tuple-no-use
timestamp: Mon 2009-10-12 13:59:22 -0500
message:
add Py_REFCNT to the python-compat module.
It doesn't seem to be available w/ python2.5
-------------- next part --------------
=== modified file 'bzrlib/python-compat.h'
--- a/bzrlib/python-compat.h 2009-09-30 18:00:42 +0000
+++ b/bzrlib/python-compat.h 2009-10-12 18:59:22 +0000
@@ -77,5 +77,8 @@
#ifndef Py_TYPE
# define Py_TYPE(o) ((o)->ob_type)
#endif
+#ifndef Py_REFCNT
+# define Py_REFCNT(o) ((o)->ob_refcnt)
+#endif
#endif /* _BZR_PYTHON_COMPAT_H */
More information about the bazaar-commits
mailing list