diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-24 11:09:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 11:09:24 (GMT) |
commit | 9e87e7776f7ace66baaf7247233afdabd00c2b44 (patch) | |
tree | e43699904e2de8394d7e408b231174f7a87c9b4a /Parser/pgenmain.c | |
parent | 4864a619dc1cc9092780ccf5a6327e8abf66133d (diff) | |
download | cpython-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 'Parser/pgenmain.c')
-rw-r--r-- | Parser/pgenmain.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c index dbdf134..20ef8a7 100644 --- a/Parser/pgenmain.c +++ b/Parser/pgenmain.c @@ -60,8 +60,6 @@ main(int argc, char **argv) filename = argv[1]; graminit_h = argv[2]; graminit_c = argv[3]; - _PyObject_Initialize(&_PyRuntime.obj); - _PyMem_Initialize(&_PyRuntime.mem); g = getgrammar(filename); fp = fopen(graminit_c, "w"); if (fp == NULL) { |