diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-07-27 21:30:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 21:30:16 (GMT) |
commit | 8bdae1424b54e5106782f2b9e2fadce444dc84cd (patch) | |
tree | 46aaf156abbf2f6a28235a824009365f4c53dd96 /Include/cpython/pylifecycle.h | |
parent | 75c974f5353685f338344618ad7344e64c2293d0 (diff) | |
download | cpython-8bdae1424b54e5106782f2b9e2fadce444dc84cd.zip cpython-8bdae1424b54e5106782f2b9e2fadce444dc84cd.tar.gz cpython-8bdae1424b54e5106782f2b9e2fadce444dc84cd.tar.bz2 |
gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-107359)
The _xxsubinterpreters module should not rely on internal API. Some of the functions it uses were recently moved there however. Here we move them back (and expose them properly).
Diffstat (limited to 'Include/cpython/pylifecycle.h')
-rw-r--r-- | Include/cpython/pylifecycle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/pylifecycle.h b/Include/cpython/pylifecycle.h index a78cec9..d425a23 100644 --- a/Include/cpython/pylifecycle.h +++ b/Include/cpython/pylifecycle.h @@ -77,3 +77,7 @@ typedef struct { PyAPI_FUNC(PyStatus) Py_NewInterpreterFromConfig( PyThreadState **tstate_p, const PyInterpreterConfig *config); + +typedef void (*atexit_datacallbackfunc)(void *); +PyAPI_FUNC(int) PyUnstable_AtExit( + PyInterpreterState *, atexit_datacallbackfunc, void *); |