gh-106320: Remove private _PyErr C API functions (#106356)

Remove private _PyErr C API functions: move them to the internal
C API (pycore_pyerrors.h).
This commit is contained in:
Victor Stinner 2023-07-03 12:48:50 +02:00 committed by GitHub
parent 18fedd04a7
commit c5afc97fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 63 additions and 46 deletions

View file

@ -21,11 +21,17 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
#ifndef Py_BUILD_CORE_BUILTIN
# define Py_BUILD_CORE_MODULE 1
#endif
#include "cursor.h"
#include "microprotocols.h"
#include "module.h"
#include "util.h"
#include "pycore_pyerrors.h" // _PyErr_FormatFromCause()
typedef enum {
TYPE_LONG,
TYPE_FLOAT,