mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Merge branches/pep-0384.
This commit is contained in:
parent
c4df784514
commit
4d0d471a80
102 changed files with 2835 additions and 75 deletions
|
@ -1755,7 +1755,6 @@ _Py_GetObjects(PyObject *self, PyObject *args)
|
|||
|
||||
#endif
|
||||
|
||||
|
||||
/* Hack to force loading of pycapsule.o */
|
||||
PyTypeObject *_PyCapsule_hack = &PyCapsule_Type;
|
||||
|
||||
|
@ -1900,6 +1899,19 @@ _PyTrash_destroy_chain(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef Py_TRACE_REFS
|
||||
/* For Py_LIMITED_API, we need an out-of-line version of _Py_Dealloc.
|
||||
Define this here, so we can undefine the macro. */
|
||||
#undef _Py_Dealloc
|
||||
PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
|
||||
void
|
||||
_Py_Dealloc(PyObject *op)
|
||||
{
|
||||
_Py_INC_TPFREES(op) _Py_COUNT_ALLOCS_COMMA
|
||||
(*Py_TYPE(op)->tp_dealloc)(op);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue