diff Include/object.h @ 2612:ca6b60d4ea90 legacy-trunk

fix dusty debugging macros
author Guido van Rossum <guido@python.org>
date Wed, 29 Mar 1995 16:57:48 +0000
parents fa98dda07877
children 68c7a0a61fd5
line wrap: on
line diff
--- a/Include/object.h	Wed Mar 29 16:47:45 1995 +0000
+++ b/Include/object.h	Wed Mar 29 16:57:48 1995 +0000
@@ -306,17 +306,17 @@
 #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)