mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-106320: Remove private _Py_ForgetReference() (#108664)
Move the private _Py_ForgetReference() function to the internal C API (pycore_object.h).
This commit is contained in:
parent
14ec0bb7c3
commit
24b9bdd6ea
2 changed files with 5 additions and 5 deletions
|
|
@ -5,11 +5,6 @@
|
|||
PyAPI_FUNC(void) _Py_NewReference(PyObject *op);
|
||||
PyAPI_FUNC(void) _Py_NewReferenceNoTotal(PyObject *op);
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
/* Py_TRACE_REFS is such major surgery that we call external routines. */
|
||||
PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
|
||||
#endif
|
||||
|
||||
#ifdef Py_REF_DEBUG
|
||||
/* These are useful as debugging aids when chasing down refleaks. */
|
||||
PyAPI_FUNC(Py_ssize_t) _Py_GetGlobalRefTotal(void);
|
||||
|
|
|
|||
|
|
@ -31,6 +31,11 @@ extern void _PyDebugAllocatorStats(FILE *out, const char *block_name,
|
|||
|
||||
extern void _PyObject_DebugTypeStats(FILE *out);
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
/* Py_TRACE_REFS is such major surgery that we call external routines. */
|
||||
PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
|
||||
#endif
|
||||
|
||||
// Export for shared _testinternalcapi extension
|
||||
PyAPI_FUNC(int) _PyObject_IsFreed(PyObject *);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue