summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-29 16:57:48 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-29 16:57:48 (GMT)
commit6f9e433ab3520d06fd3bc0c97a6ba49c0d67816d (patch)
tree0d7aa77f255a4660ce7792da77f84d7441fbafaa /Include/object.h
parent07432c0ef60635739151160f626d222bed45cf2c (diff)
downloadcpython-6f9e433ab3520d06fd3bc0c97a6ba49c0d67816d.zip
cpython-6f9e433ab3520d06fd3bc0c97a6ba49c0d67816d.tar.gz
cpython-6f9e433ab3520d06fd3bc0c97a6ba49c0d67816d.tar.bz2
fix dusty debugging macros
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Include/object.h b/Include/object.h
index 0b679d5..0b85fd3 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -306,17 +306,17 @@ extern void inc_count Py_PROTO((PyTypeObject *));
#endif
#ifdef Py_REF_DEBUG
-extern long ref_total;
+extern long _Py_RefTotal;
#ifndef Py_TRACE_REFS
#ifdef COUNT_ALLOCS
-#define _Py_NewReference(op) (inc_count((op)->ob_type), ref_total++, (op)->ob_refcnt = 1)
+#define _Py_NewReference(op) (inc_count((op)->ob_type), _Py_RefTotal++, (op)->ob_refcnt = 1)
#else
-#define _Py_NewReference(op) (ref_total++, (op)->ob_refcnt = 1)
+#define _Py_NewReference(op) (_Py_RefTotal++, (op)->ob_refcnt = 1)
#endif
#endif
-#define Py_INCREF(op) (ref_total++, (op)->ob_refcnt++)
+#define Py_INCREF(op) (_Py_RefTotal++, (op)->ob_refcnt++)
#define Py_DECREF(op) \
- if (--ref_total, --(op)->ob_refcnt != 0) \
+ if (--_Py_RefTotal, --(op)->ob_refcnt != 0) \
; \
else \
_Py_Dealloc(op)