summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime_init.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-02-28 20:14:40 (GMT)
committerGitHub <noreply@github.com>2023-02-28 20:14:40 (GMT)
commitf300a1fa4c121f7807cbda4fc8bb26240c69ea74 (patch)
tree9920324d344de93f0aecfe1117dc3b53d6257dbf /Include/internal/pycore_runtime_init.h
parentb5ff38243355c06d665ba8245d461a0d82504581 (diff)
downloadcpython-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.h6
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, \