From 92eebf6dd20c541ca5883d010a575fb6ea4a245c Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 14 Apr 2021 16:38:30 +0200 Subject: [PATCH] bpo-43795: Sort PC/python3dll.c (GH-25312) Each section is sorted to reduce diffs (review effort) when the file becomes generated. Sort is done with key=str.lower to preserve most of the original order (underscored items first). https://bugs.python.org/issue43795 --- PC/python3dll.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PC/python3dll.c b/PC/python3dll.c index b5735e81e81..195c6531fdf 100644 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -14,6 +14,8 @@ EXPORT_FUNC(_Py_BuildValue_SizeT) EXPORT_FUNC(_Py_CheckRecursiveCall) EXPORT_FUNC(_Py_Dealloc) +EXPORT_FUNC(_Py_DecRef) +EXPORT_FUNC(_Py_IncRef) EXPORT_FUNC(_Py_VaBuildValue_SizeT) EXPORT_FUNC(_PyArg_Parse_SizeT) EXPORT_FUNC(_PyArg_ParseTuple_SizeT) @@ -36,14 +38,12 @@ EXPORT_FUNC(_PyTrash_deposit_object) EXPORT_FUNC(_PyTrash_destroy_chain) EXPORT_FUNC(_PyTrash_thread_deposit_object) EXPORT_FUNC(_PyTrash_thread_destroy_chain) -EXPORT_FUNC(_Py_IncRef) -EXPORT_FUNC(_Py_DecRef) EXPORT_FUNC(Py_AddPendingCall) EXPORT_FUNC(Py_AtExit) EXPORT_FUNC(Py_BuildValue) EXPORT_FUNC(Py_CompileString) -EXPORT_FUNC(Py_DecRef) EXPORT_FUNC(Py_DecodeLocale) +EXPORT_FUNC(Py_DecRef) EXPORT_FUNC(Py_EncodeLocale) EXPORT_FUNC(Py_EndInterpreter) EXPORT_FUNC(Py_EnterRecursiveCall) @@ -260,8 +260,8 @@ EXPORT_FUNC(PyFloat_FromString) EXPORT_FUNC(PyFloat_GetInfo) EXPORT_FUNC(PyFloat_GetMax) EXPORT_FUNC(PyFloat_GetMin) -EXPORT_FUNC(PyFrame_GetLineNumber) EXPORT_FUNC(PyFrame_GetCode) +EXPORT_FUNC(PyFrame_GetLineNumber) EXPORT_FUNC(PyFrozenSet_New) EXPORT_FUNC(PyGC_Collect) EXPORT_FUNC(PyGILState_Ensure) @@ -424,8 +424,8 @@ EXPORT_FUNC(PyObject_GC_Del) EXPORT_FUNC(PyObject_GC_Track) EXPORT_FUNC(PyObject_GC_UnTrack) EXPORT_FUNC(PyObject_GenericGetAttr) -EXPORT_FUNC(PyObject_GenericSetAttr) EXPORT_FUNC(PyObject_GenericGetDict) +EXPORT_FUNC(PyObject_GenericSetAttr) EXPORT_FUNC(PyObject_GenericSetDict) EXPORT_FUNC(PyObject_GetAttr) EXPORT_FUNC(PyObject_GetAttrString) @@ -556,9 +556,9 @@ EXPORT_FUNC(PyTuple_Pack) EXPORT_FUNC(PyTuple_SetItem) EXPORT_FUNC(PyTuple_Size) EXPORT_FUNC(PyType_ClearCache) +EXPORT_FUNC(PyType_FromModuleAndSpec) EXPORT_FUNC(PyType_FromSpec) EXPORT_FUNC(PyType_FromSpecWithBases) -EXPORT_FUNC(PyType_FromModuleAndSpec) EXPORT_FUNC(PyType_GenericAlloc) EXPORT_FUNC(PyType_GenericNew) EXPORT_FUNC(PyType_GetFlags) @@ -726,13 +726,13 @@ EXPORT_DATA(PyExc_BlockingIOError) EXPORT_DATA(PyExc_BrokenPipeError) EXPORT_DATA(PyExc_BufferError) EXPORT_DATA(PyExc_BytesWarning) -EXPORT_DATA(PyExc_EncodingWarning) EXPORT_DATA(PyExc_ChildProcessError) EXPORT_DATA(PyExc_ConnectionAbortedError) EXPORT_DATA(PyExc_ConnectionError) EXPORT_DATA(PyExc_ConnectionRefusedError) EXPORT_DATA(PyExc_ConnectionResetError) EXPORT_DATA(PyExc_DeprecationWarning) +EXPORT_DATA(PyExc_EncodingWarning) EXPORT_DATA(PyExc_EnvironmentError) EXPORT_DATA(PyExc_EOFError) EXPORT_DATA(PyExc_Exception)