Kaydet (Commit) bbd89b66 authored tarafından Barry Warsaw's avatar Barry Warsaw

PyObject_Dump() -> _PyObject_Dump()

PyGC_Dump() -> _PyGC_Dump()
üst 430d773f
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
# number of reference counts it current has and the hex address the # number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyObject* # object is allocated at. The argument must be a PyObject*
define pyo define pyo
print PyObject_Dump($arg0) print _PyObject_Dump($arg0)
end end
# Prints a representation of the object to stderr, along with the # Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the # number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyGC_Head* # object is allocated at. The argument must be a PyGC_Head*
define pyg define pyg
print PyGC_Dump($arg0) print _PyGC_Dump($arg0)
end end
...@@ -221,7 +221,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags) ...@@ -221,7 +221,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
} }
/* For debugging convenience. See Misc/gdbinit for some useful gdb hooks */ /* 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); (void)PyObject_Print(op, stderr, 0);
fprintf(stderr, "\nrefcounts: %d\n", op->ob_refcnt); fprintf(stderr, "\nrefcounts: %d\n", op->ob_refcnt);
...@@ -229,9 +229,9 @@ void PyObject_Dump(PyObject* op) ...@@ -229,9 +229,9 @@ void PyObject_Dump(PyObject* op)
} }
#ifdef WITH_CYCLE_GC #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 */ #endif /* WITH_CYCLE_GC */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment