summaryrefslogtreecommitdiffstats
path: root/Include/internal/pystate.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-24 11:09:24 (GMT)
committerGitHub <noreply@github.com>2017-11-24 11:09:24 (GMT)
commit9e87e7776f7ace66baaf7247233afdabd00c2b44 (patch)
treee43699904e2de8394d7e408b231174f7a87c9b4a /Include/internal/pystate.h
parent4864a619dc1cc9092780ccf5a6327e8abf66133d (diff)
downloadcpython-9e87e7776f7ace66baaf7247233afdabd00c2b44.zip
cpython-9e87e7776f7ace66baaf7247233afdabd00c2b44.tar.gz
cpython-9e87e7776f7ace66baaf7247233afdabd00c2b44.tar.bz2
bpo-32096: Remove obj and mem from _PyRuntime (#4532)
bpo-32096, bpo-30860: Partially revert the commit 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6: * Move structures back from Include/internal/mem.h to Objects/obmalloc.c * Remove _PyObject_Initialize() and _PyMem_Initialize() * Remove Include/internal/pymalloc.h * Add test_capi.test_pre_initialization_api(): Make sure that it's possible to call Py_DecodeLocale(), and then call Py_SetProgramName() with the decoded string, before Py_Initialize(). PyMem_RawMalloc() and Py_DecodeLocale() can be called again before _PyRuntimeState_Init(). Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Include/internal/pystate.h')
-rw-r--r--Include/internal/pystate.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/internal/pystate.h b/Include/internal/pystate.h
index 67b4a51..7056e10 100644
--- a/Include/internal/pystate.h
+++ b/Include/internal/pystate.h
@@ -64,9 +64,7 @@ typedef struct pyruntimestate {
int nexitfuncs;
void (*pyexitfunc)(void);
- struct _pyobj_runtime_state obj;
struct _gc_runtime_state gc;
- struct _pymem_runtime_state mem;
struct _warnings_runtime_state warnings;
struct _ceval_runtime_state ceval;
struct _gilstate_runtime_state gilstate;