diff options
author | Guido van Rossum <guido@python.org> | 1996-05-23 22:46:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-05-23 22:46:51 (GMT) |
commit | 441e4ab802cadf2543d2c9af1e4070c59f03a08c (patch) | |
tree | bdc25d65ad643e54a4b329bb2227c95f167e4f1d /Objects | |
parent | 7f3f2c1819ca3bd126c4793384dea811fcefc250 (diff) | |
download | cpython-441e4ab802cadf2543d2c9af1e4070c59f03a08c.zip cpython-441e4ab802cadf2543d2c9af1e4070c59f03a08c.tar.gz cpython-441e4ab802cadf2543d2c9af1e4070c59f03a08c.tar.bz2 |
new debugger symbol names
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 12 | ||||
-rw-r--r-- | Objects/stringobject.c | 2 | ||||
-rw-r--r-- | Objects/tupleobject.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 48ea2e7..f5a0d2a 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -347,8 +347,8 @@ instance_dealloc(inst) object *del; /* Call the __del__ method if it exists. First temporarily revive the object and save the current exception, if any. */ -#ifdef TRACE_REFS - /* much too complicated if TRACE_REFS defined */ +#ifdef Py_TRACE_REFS + /* much too complicated if Py_TRACE_REFS defined */ extern long ref_total; inst->ob_type = &Instancetype; NEWREF(inst); @@ -356,9 +356,9 @@ instance_dealloc(inst) #ifdef COUNT_ALLOCS inst->ob_type->tp_alloc--; /* ditto */ #endif -#else +#else /* !Py_TRACE_REFS */ INCREF(inst); -#endif /* TRACE_REFS */ +#endif /* !Py_TRACE_REFS */ err_fetch(&error_type, &error_value, &error_traceback); if ((del = instance_getattr1(inst, "__del__")) != NULL) { object *res = call_object(del, (object *)NULL); @@ -375,13 +375,13 @@ instance_dealloc(inst) #endif return; /* __del__ added a reference; don't delete now */ } -#ifdef TRACE_REFS +#ifdef Py_TRACE_REFS #ifdef COUNT_ALLOCS inst->ob_type->tp_free--; /* compensate for increment in UNREF */ #endif UNREF(inst); inst->ob_type = NULL; -#endif /* TRACE_REFS */ +#endif /* Py_TRACE_REFS */ DECREF(inst->in_class); XDECREF(inst->in_dict); free((ANY *)inst); diff --git a/Objects/stringobject.c b/Objects/stringobject.c index ac03ff6..1e11c50 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -507,7 +507,7 @@ resizestring(pv, newsize) return -1; } /* XXX UNREF/NEWREF interface should be more symmetrical */ -#ifdef REF_DEBUG +#ifdef Py_REF_DEBUG --_Py_RefTotal; #endif UNREF(v); diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 2218e50..19c3641 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -418,7 +418,7 @@ resizetuple(pv, newsize, last_is_sticky) if (sizediff == 0) return 0; /* XXX UNREF/NEWREF interface should be more symmetrical */ -#ifdef REF_DEBUG +#ifdef Py_REF_DEBUG --_Py_RefTotal; #endif UNREF(v); |