aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-12-14 22:40:40 +0100
committerGitHub <noreply@github.com>2020-12-14 22:40:40 +0100
commit83d52044ae4def1e8611a4b1b9263b850ca5c458 (patch)
treecdc3b90536390556290ca0fc2f12ea54a0135289 /Include/internal
parentbpo-41877: Check for misspelled speccing arguments (GH-23737) (diff)
downloadcpython-83d52044ae4def1e8611a4b1b9263b850ca5c458.tar.gz
cpython-83d52044ae4def1e8611a4b1b9263b850ca5c458.tar.bz2
cpython-83d52044ae4def1e8611a4b1b9263b850ca5c458.zip
bpo-42639: Cleanup atexitmodule.c (GH-23770)
* Rename "atexitmodule_state" to "struct atexit_state". * Rename "modstate" to "state". * Rename "self" parameter to "module". * test_atexit uses textwrap.dedent(). * Remove _Py_PyAtExit() function: inline it into atexit_exec(). * PyInterpreterState: rename pyexitfunc to atexit_func, rename pyexitmodule to atexit_module.
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_interp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h
index 184878ce146..2515234708b 100644
--- a/Include/internal/pycore_interp.h
+++ b/Include/internal/pycore_interp.h
@@ -234,8 +234,8 @@ struct _is {
PyObject *after_forkers_child;
#endif
/* AtExit module */
- void (*pyexitfunc)(PyObject *);
- PyObject *pyexitmodule;
+ void (*atexit_func)(PyObject *);
+ PyObject *atexit_module;
uint64_t tstate_next_unique_id;