From ded690fc351ecaf0f72429107fa726a9916ab0f6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 24 May 1996 20:48:31 +0000 Subject: rename printrefs, getobjects to _Py_ prefix --- Objects/object.c | 4 ++-- Python/pythonrun.c | 2 +- Python/sysmodule.c | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Objects/object.c b/Objects/object.c index 747657c..7994389 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -525,7 +525,7 @@ DELREF(op) (*dealloc)(op); } -printrefs(fp) +_Py_PrintReferences(fp) FILE *fp; { object *op; @@ -541,7 +541,7 @@ printrefs(fp) } PyObject * -getobjects(self, args) +_Py_GetObjects(self, args) PyObject *self; PyObject *args; { diff --git a/Python/pythonrun.c b/Python/pythonrun.c index c789881..1da9d9e 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -658,7 +658,7 @@ goaway(sts) #ifdef Py_TRACE_REFS if (askyesno("Print left references?")) { - printrefs(stderr); + _Py_PrintReferences(stderr); } #endif /* Py_TRACE_REFS */ diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 17845f0..17a7852 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -183,8 +183,10 @@ sys_getcounts(self, args) #endif #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 + static struct methodlist sys_methods[] = { {"exit", sys_exit, 0}, {"getrefcount", sys_getrefcount, 0}, @@ -192,7 +194,7 @@ static struct methodlist sys_methods[] = { {"getcounts", sys_getcounts, 0}, #endif #ifdef Py_TRACE_REFS - {"getobjects", getobjects, 1}, + {"getobjects", _Py_GetObjects, 1}, #endif #ifdef USE_MALLOPT {"mdebug", sys_mdebug, 0}, -- cgit v0.12