mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-102304: Rename _Py_IncRefTotal_DO_NOT_USE_THIS() (#107193)
* Rename _Py_IncRefTotal_DO_NOT_USE_THIS() to _Py_INCREF_IncRefTotal() * Rename _Py_DecRefTotal_DO_NOT_USE_THIS() to _Py_DECREF_DecRefTotal() * Remove temporary _Py_INC_REFTOTAL() and _Py_DEC_REFTOTAL() macros
This commit is contained in:
parent
e717b47ed8
commit
8ebc9fc321
2 changed files with 6 additions and 11 deletions
|
|
@ -207,14 +207,14 @@ _Py_NegativeRefcount(const char *filename, int lineno, PyObject *op)
|
|||
|
||||
/* This is used strictly by Py_INCREF(). */
|
||||
void
|
||||
_Py_IncRefTotal_DO_NOT_USE_THIS(void)
|
||||
_Py_INCREF_IncRefTotal(void)
|
||||
{
|
||||
reftotal_increment(_PyInterpreterState_GET());
|
||||
}
|
||||
|
||||
/* This is used strictly by Py_DECREF(). */
|
||||
void
|
||||
_Py_DecRefTotal_DO_NOT_USE_THIS(void)
|
||||
_Py_DECREF_DecRefTotal(void)
|
||||
{
|
||||
reftotal_decrement(_PyInterpreterState_GET());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue