diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 23:35:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 23:35:47 (GMT) |
commit | 546cab84448b892c92e68d9c1a3d3b58c13b3463 (patch) | |
tree | c376b5fd170cbd7ad902e47f6f59a107467b029c /Modules | |
parent | d6ac5c7b105fe57266bd71248e3ada41fedb5ba9 (diff) | |
download | cpython-546cab84448b892c92e68d9c1a3d3b58c13b3463.zip cpython-546cab84448b892c92e68d9c1a3d3b58c13b3463.tar.gz cpython-546cab84448b892c92e68d9c1a3d3b58c13b3463.tar.bz2 |
gh-106320: Remove private _PyTraceback functions (#108453)
Move private functions to the internal C API (pycore_traceback.h):
* _Py_DisplaySourceLine()
* _PyTraceback_Add()
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callproc.c | 6 | ||||
-rw-r--r-- | Modules/pyexpat.c | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index f9535db..fc08c42 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -101,8 +101,10 @@ module _ctypes #define DONT_USE_SEH #endif -#include "pycore_runtime.h" // _PyRuntime -#include "pycore_global_objects.h" // _Py_ID() +#include "pycore_runtime.h" // _PyRuntime +#include "pycore_global_objects.h"// _Py_ID() +#include "pycore_traceback.h" // _PyTraceback_Add() + #include "clinic/callproc.c.h" #define CTYPES_CAPSULE_NAME_PYMEM "_ctypes pymem" diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index a8ce84c..52dd06c 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -5,6 +5,7 @@ #include "Python.h" #include "pycore_import.h" // _PyImport_SetModule() #include "pycore_pyhash.h" // _Py_HashSecret +#include "pycore_traceback.h" // _PyTraceback_Add() #include <ctype.h> #include <stddef.h> // offsetof() |