diff options
author | Pedro Alves <palves@redhat.com> | 2013-05-21 20:52:30 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-05-21 20:52:30 +0000 |
commit | 1915daebe6683fb1cdd42c87a6db5532a396bbc6 (patch) | |
tree | bfa6dede3c6bd8ed9c72fce2ae57e1b8ce4046b7 /COPYING3 | |
parent | 52c935b6f53a31185e201524b479e18f3b925981 (diff) | |
download | gdb-1915daebe6683fb1cdd42c87a6db5532a396bbc6.zip gdb-1915daebe6683fb1cdd42c87a6db5532a396bbc6.tar.gz gdb-1915daebe6683fb1cdd42c87a6db5532a396bbc6.tar.bz2 |
Centralize workaround for Python 2.6's Py_DECREF.
Wrap/redefine Py_DECREF ourselves, avoiding the need for uses to care
about extra braces due to the fact that Python only started wrapping Py_DECREF
in 'do {} while (0)' after 2.6.
gdb/
2013-05-21 Pedro Alves <palves@redhat.com>
* python/py-utils.c (py_decref): Remove extra braces.
(gdb_pymodule_addobject): Remove extra braces.
* python-internal.h (gdb_Py_DECREF): New static inline function.
(Py_DECREF): Redefine as calling gdb_Py_DECREF.
Diffstat (limited to 'COPYING3')
0 files changed, 0 insertions, 0 deletions