mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fix dusty debugging macros
This commit is contained in:
parent
07432c0ef6
commit
6f9e433ab3
6 changed files with 11 additions and 11 deletions
|
@ -26,7 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "allobjects.h"
|
||||
|
||||
#ifdef REF_DEBUG
|
||||
#if defined( Py_TRACE_REFS ) || defined( Py_REF_DEBUG )
|
||||
long ref_total;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -508,7 +508,7 @@ resizestring(pv, newsize)
|
|||
}
|
||||
/* XXX UNREF/NEWREF interface should be more symmetrical */
|
||||
#ifdef REF_DEBUG
|
||||
--ref_total;
|
||||
--_Py_RefTotal;
|
||||
#endif
|
||||
UNREF(v);
|
||||
*pv = (object *)
|
||||
|
|
|
@ -419,7 +419,7 @@ resizetuple(pv, newsize, last_is_sticky)
|
|||
return 0;
|
||||
/* XXX UNREF/NEWREF interface should be more symmetrical */
|
||||
#ifdef REF_DEBUG
|
||||
--ref_total;
|
||||
--_Py_RefTotal;
|
||||
#endif
|
||||
UNREF(v);
|
||||
if (last_is_sticky && sizediff < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue