]> granicus.if.org Git - python/commitdiff
PyObject_Dump() -> _PyObject_Dump()
authorBarry Warsaw <barry@python.org>
Wed, 24 Jan 2001 04:18:13 +0000 (04:18 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 24 Jan 2001 04:18:13 +0000 (04:18 +0000)
PyGC_Dump() -> _PyGC_Dump()

Misc/gdbinit
Objects/object.c

index a164f4266c3a9ffdb41a4d2440d23574383a486f..ae333b2686f163e4e1dd9fcef998fd35b37b0c93 100644 (file)
 # number of reference counts it current has and the hex address the
 # object is allocated at.  The argument must be a PyObject*
 define pyo
-print PyObject_Dump($arg0)
+print _PyObject_Dump($arg0)
 end
 
 # Prints a representation of the object to stderr, along with the
 # number of reference counts it current has and the hex address the
 # object is allocated at.  The argument must be a PyGC_Head*
 define pyg
-print PyGC_Dump($arg0)
+print _PyGC_Dump($arg0)
 end
index b613dba29fafc92486eef16ac7ccdb1b0014980a..6dbd14c38744c848366fb1e8c1404ef7c674c944 100644 (file)
@@ -221,7 +221,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
 }
 
 /* For debugging convenience.  See Misc/gdbinit for some useful gdb hooks */
-void PyObject_Dump(PyObject* op) 
+void _PyObject_Dump(PyObject* op) 
 {
        (void)PyObject_Print(op, stderr, 0);
        fprintf(stderr, "\nrefcounts: %d\n", op->ob_refcnt);
@@ -229,9 +229,9 @@ void PyObject_Dump(PyObject* op)
 }
 
 #ifdef WITH_CYCLE_GC
-void PyGC_Dump(PyGC_Head* op)
+void _PyGC_Dump(PyGC_Head* op)
 {
-       PyObject_Dump(PyObject_FROM_GC(op));
+       _PyObject_Dump(PyObject_FROM_GC(op));
 }
 #endif /* WITH_CYCLE_GC */