Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ded690fc
Commit
ded690fc
authored
May 24, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename printrefs, getobjects to _Py_ prefix
parent
363078af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
Objects/object.c
Objects/object.c
+2
-2
Python/pythonrun.c
Python/pythonrun.c
+1
-1
Python/sysmodule.c
Python/sysmodule.c
+4
-2
No files found.
Objects/object.c
View file @
ded690fc
...
...
@@ -525,7 +525,7 @@ DELREF(op)
(
*
dealloc
)(
op
);
}
printref
s
(
fp
)
_Py_PrintReference
s
(
fp
)
FILE
*
fp
;
{
object
*
op
;
...
...
@@ -541,7 +541,7 @@ printrefs(fp)
}
PyObject
*
geto
bjects
(
self
,
args
)
_Py_GetO
bjects
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
{
...
...
Python/pythonrun.c
View file @
ded690fc
...
...
@@ -658,7 +658,7 @@ goaway(sts)
#ifdef Py_TRACE_REFS
if
(
askyesno
(
"Print left references?"
))
{
printref
s
(
stderr
);
_Py_PrintReference
s
(
stderr
);
}
#endif
/* Py_TRACE_REFS */
...
...
Python/sysmodule.c
View file @
ded690fc
...
...
@@ -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"
,
geto
bjects
,
1
},
{
"getobjects"
,
_Py_GetO
bjects
,
1
},
#endif
#ifdef USE_MALLOPT
{
"mdebug"
,
sys_mdebug
,
0
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment