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
d86b3800
Commit
d86b3800
authored
Aug 12, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extern declarations for reference count admin debug functions.
parent
f67a57ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Include/object.h
Include/object.h
+10
-3
No files found.
Include/object.h
View file @
d86b3800
...
...
@@ -292,15 +292,22 @@ environment the global variable trick is not safe.)
#endif
#endif
#ifdef Py_TRACE_REFS
extern
void
_Py_Dealloc
Py_PROTO
((
PyObject
*
));
extern
void
_Py_NewReference
Py_PROTO
((
PyObject
*
));
extern
void
_Py_ForgetReference
Py_PROTO
((
PyObject
*
));
extern
void
_Py_PrintReferences
Py_PROTO
((
FILE
*
));
#endif
#ifndef Py_TRACE_REFS
#ifdef COUNT_ALLOCS
#define _Py_Dealloc(op) ((op)->ob_type->tp_free++, (*(op)->ob_type->tp_dealloc)((PyObject *)(op)))
#define _Py_ForgetReference(op) ((op)->ob_type->tp_free++)
#else
#else
/* !COUNT_ALLOCS */
#define _Py_Dealloc(op) (*(op)->ob_type->tp_dealloc)((PyObject *)(op))
#define _Py_ForgetReference(op)
/*empty*/
#endif
#endif
#endif
/* !COUNT_ALLOCS */
#endif
/* !Py_TRACE_REFS */
#ifdef COUNT_ALLOCS
extern
void
inc_count
Py_PROTO
((
PyTypeObject
*
));
...
...
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