diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-02-28 20:14:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 20:14:40 (GMT) |
commit | f300a1fa4c121f7807cbda4fc8bb26240c69ea74 (patch) | |
tree | 9920324d344de93f0aecfe1117dc3b53d6257dbf /Include/internal/pycore_runtime_init.h | |
parent | b5ff38243355c06d665ba8245d461a0d82504581 (diff) | |
download | cpython-f300a1fa4c121f7807cbda4fc8bb26240c69ea74.zip cpython-f300a1fa4c121f7807cbda4fc8bb26240c69ea74.tar.gz cpython-f300a1fa4c121f7807cbda4fc8bb26240c69ea74.tar.bz2 |
gh-100227: Move the dtoa State to PyInterpreterState (gh-102331)
https://github.com/python/cpython/issues/100227
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index a8d5953..b54adf0 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -53,7 +53,6 @@ extern "C" { .gilstate = { \ .check_enabled = 1, \ }, \ - .dtoa = _dtoa_runtime_state_INIT(runtime), \ .fileutils = { \ .force_ascii = -1, \ }, \ @@ -94,10 +93,10 @@ extern "C" { }, \ }, \ }, \ - ._main_interpreter = _PyInterpreterState_INIT, \ + ._main_interpreter = _PyInterpreterState_INIT(runtime._main_interpreter), \ } -#define _PyInterpreterState_INIT \ +#define _PyInterpreterState_INIT(INTERP) \ { \ .id_refcount = -1, \ .imports = IMPORTS_INIT, \ @@ -113,6 +112,7 @@ extern "C" { { .threshold = 10, }, \ }, \ }, \ + .dtoa = _dtoa_state_INIT(&(INTERP)), \ .static_objects = { \ .singletons = { \ ._not_used = 1, \ |