diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-08-26 22:12:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-26 22:12:32 (GMT) |
commit | bed4817d52d7b5a383b1b61269c1337b61acc493 (patch) | |
tree | 01f7e4deff50bacc84b2c5924e4e873f201cdc0f /Include | |
parent | d3cc189b17c86f670198aca109b5ffa2d526d87a (diff) | |
download | cpython-bed4817d52d7b5a383b1b61269c1337b61acc493.zip cpython-bed4817d52d7b5a383b1b61269c1337b61acc493.tar.gz cpython-bed4817d52d7b5a383b1b61269c1337b61acc493.tar.bz2 |
Make PyXXX_Fini() functions private (GH-15531)
For example, rename PyTuple_Fini() to _PyTuple_Fini().
These functions are only declared in the internal C API.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index bdc4bf5..4957429 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -62,18 +62,19 @@ extern PyStatus _PyImportZip_Init(PyThreadState *tstate); /* Various internal finalizers */ -extern void PyMethod_Fini(void); -extern void PyFrame_Fini(void); -extern void PyCFunction_Fini(void); -extern void PyDict_Fini(void); -extern void PyTuple_Fini(void); -extern void PyList_Fini(void); -extern void PySet_Fini(void); -extern void PyBytes_Fini(void); -extern void PyFloat_Fini(void); +extern void _PyMethod_Fini(void); +extern void _PyFrame_Fini(void); +extern void _PyCFunction_Fini(void); +extern void _PyDict_Fini(void); +extern void _PyTuple_Fini(void); +extern void _PyList_Fini(void); +extern void _PySet_Fini(void); +extern void _PyBytes_Fini(void); +extern void _PyFloat_Fini(void); +extern void _PySlice_Fini(void); +extern void _PyAsyncGen_Fini(void); + extern void PyOS_FiniInterrupts(void); -extern void PySlice_Fini(void); -extern void PyAsyncGen_Fini(void); extern void _PyExc_Fini(void); extern void _PyImport_Fini(void); @@ -82,7 +83,7 @@ extern void _PyGC_Fini(_PyRuntimeState *runtime); extern void _PyType_Fini(void); extern void _Py_HashRandomization_Fini(void); extern void _PyUnicode_Fini(void); -extern void PyLong_Fini(void); +extern void _PyLong_Fini(void); extern void _PyFaulthandler_Fini(void); extern void _PyHash_Fini(void); extern int _PyTraceMalloc_Fini(void); |