This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Building current gdb on centos-5
- From: Pedro Alves <palves at redhat dot com>
- To: Julian Smith <jules at op59 dot net>
- Cc: gdb at sourceware dot org
- Date: Thu, 30 May 2013 09:13:51 +0100
- Subject: Re: Building current gdb on centos-5
- References: <20130529215013 dot 70904c7d dot jules at op59 dot net> <51A708FA dot 1070404 at redhat dot com>
On 05/30/2013 09:08 AM, Pedro Alves wrote:
> For the archives, could you please paste what Py_DECREF looks
> like in 2.4? Thanks!
Nevermind, downloading the 2.4.6's sources only took a minute. :-)
2.4:
#define Py_DECREF(op) \
if (_Py_DEC_REFTOTAL _Py_REF_DEBUG_COMMA \
--(op)->ob_refcnt != 0) \
_Py_CHECK_REFCNT(op) \
else \
_Py_Dealloc((PyObject *)(op))
2.7:
#define Py_DECREF(op) \
do { \
if (_Py_DEC_REFTOTAL _Py_REF_DEBUG_COMMA \
--((PyObject*)(op))->ob_refcnt != 0) \
_Py_CHECK_REFCNT(op) \
else \
_Py_Dealloc((PyObject *)(op)); \
} while (0)
--
Pedro Alves