Kaydet (Commit) ded690fc authored tarafından Guido van Rossum's avatar Guido van Rossum

rename printrefs, getobjects to _Py_ prefix

üst 363078af
...@@ -525,7 +525,7 @@ DELREF(op) ...@@ -525,7 +525,7 @@ DELREF(op)
(*dealloc)(op); (*dealloc)(op);
} }
printrefs(fp) _Py_PrintReferences(fp)
FILE *fp; FILE *fp;
{ {
object *op; object *op;
...@@ -541,7 +541,7 @@ printrefs(fp) ...@@ -541,7 +541,7 @@ printrefs(fp)
} }
PyObject * PyObject *
getobjects(self, args) _Py_GetObjects(self, args)
PyObject *self; PyObject *self;
PyObject *args; PyObject *args;
{ {
......
...@@ -658,7 +658,7 @@ goaway(sts) ...@@ -658,7 +658,7 @@ goaway(sts)
#ifdef Py_TRACE_REFS #ifdef Py_TRACE_REFS
if (askyesno("Print left references?")) { if (askyesno("Print left references?")) {
printrefs(stderr); _Py_PrintReferences(stderr);
} }
#endif /* Py_TRACE_REFS */ #endif /* Py_TRACE_REFS */
......
...@@ -183,8 +183,10 @@ sys_getcounts(self, args) ...@@ -183,8 +183,10 @@ sys_getcounts(self, args)
#endif #endif
#ifdef Py_TRACE_REFS #ifdef Py_TRACE_REFS
extern PyObject *getobjects Py_PROTO((PyObject *, PyObject *)); /* Defined in objects.c because it uses static globals if that file */
extern PyObject *_Py_GetObjects Py_PROTO((PyObject *, PyObject *));
#endif #endif
static struct methodlist sys_methods[] = { static struct methodlist sys_methods[] = {
{"exit", sys_exit, 0}, {"exit", sys_exit, 0},
{"getrefcount", sys_getrefcount, 0}, {"getrefcount", sys_getrefcount, 0},
...@@ -192,7 +194,7 @@ static struct methodlist sys_methods[] = { ...@@ -192,7 +194,7 @@ static struct methodlist sys_methods[] = {
{"getcounts", sys_getcounts, 0}, {"getcounts", sys_getcounts, 0},
#endif #endif
#ifdef Py_TRACE_REFS #ifdef Py_TRACE_REFS
{"getobjects", getobjects, 1}, {"getobjects", _Py_GetObjects, 1},
#endif #endif
#ifdef USE_MALLOPT #ifdef USE_MALLOPT
{"mdebug", sys_mdebug, 0}, {"mdebug", sys_mdebug, 0},
......
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