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 /Modules/atexitmodule.c | |
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 'Modules/atexitmodule.c')
-rw-r--r-- | Modules/atexitmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/atexitmodule.c b/Modules/atexitmodule.c index 5882d40..cec177c 100644 --- a/Modules/atexitmodule.c +++ b/Modules/atexitmodule.c @@ -24,8 +24,8 @@ get_atexit_state(void) int -_Py_AtExit(PyInterpreterState *interp, - atexit_datacallbackfunc func, void *data) +PyUnstable_AtExit(PyInterpreterState *interp, + atexit_datacallbackfunc func, void *data) { assert(interp == _PyInterpreterState_GET()); atexit_callback *callback = PyMem_Malloc(sizeof(atexit_callback)); |