diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-24 19:42:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 19:42:04 (GMT) |
commit | e717b47ed8ae7017f0bfb835fe673aa836e8fcca (patch) | |
tree | 1e1e07a19766dbf8df9e9eac6f2accaedff0c0f2 /Include/cpython/initconfig.h | |
parent | db17529f80e18f80a680bd588a71be32ef7ec9fb (diff) | |
download | cpython-e717b47ed8ae7017f0bfb835fe673aa836e8fcca.zip cpython-e717b47ed8ae7017f0bfb835fe673aa836e8fcca.tar.gz cpython-e717b47ed8ae7017f0bfb835fe673aa836e8fcca.tar.bz2 |
gh-98608: Move PyInterpreterConfig to pylifecycle.h (#107191)
Move PyInterpreterConfig structure and associated macros from
initconfig.h to pylifecycle.h: it's not related to the Python
Initialization Configuration.
Diffstat (limited to 'Include/cpython/initconfig.h')
-rw-r--r-- | Include/cpython/initconfig.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h index c103c20..cbae97f 100644 --- a/Include/cpython/initconfig.h +++ b/Include/cpython/initconfig.h @@ -242,45 +242,6 @@ PyAPI_FUNC(PyStatus) PyConfig_SetWideStringList(PyConfig *config, Py_ssize_t length, wchar_t **items); -/* --- PyInterpreterConfig ------------------------------------ */ - -#define PyInterpreterConfig_DEFAULT_GIL (0) -#define PyInterpreterConfig_SHARED_GIL (1) -#define PyInterpreterConfig_OWN_GIL (2) - -typedef struct { - // XXX "allow_object_sharing"? "own_objects"? - int use_main_obmalloc; - int allow_fork; - int allow_exec; - int allow_threads; - int allow_daemon_threads; - int check_multi_interp_extensions; - int gil; -} PyInterpreterConfig; - -#define _PyInterpreterConfig_INIT \ - { \ - .use_main_obmalloc = 0, \ - .allow_fork = 0, \ - .allow_exec = 0, \ - .allow_threads = 1, \ - .allow_daemon_threads = 0, \ - .check_multi_interp_extensions = 1, \ - .gil = PyInterpreterConfig_OWN_GIL, \ - } - -#define _PyInterpreterConfig_LEGACY_INIT \ - { \ - .use_main_obmalloc = 1, \ - .allow_fork = 1, \ - .allow_exec = 1, \ - .allow_threads = 1, \ - .allow_daemon_threads = 1, \ - .check_multi_interp_extensions = 0, \ - .gil = PyInterpreterConfig_SHARED_GIL, \ - } - /* --- Helper functions --------------------------------------- */ /* Get the original command line arguments, before Python modified them. |