diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object.c | 2 | ||||
-rw-r--r-- | Objects/stringobject.c | 2 | ||||
-rw-r--r-- | Objects/tupleobject.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Objects/object.c b/Objects/object.c index d93d28b..fc8d525 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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 diff --git a/Objects/stringobject.c b/Objects/stringobject.c index b09fc25..54f161f 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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 *) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 69c4f95..7fae264 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -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) { |