summaryrefslogtreecommitdiffstats
path: root/Include/cpython/coreconfig.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-25 17:37:10 (GMT)
committerGitHub <noreply@github.com>2019-03-25 17:37:10 (GMT)
commita6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 (patch)
treeb45a6288d1bb5ac1e1df81a0b8c2fc616bc01f44 /Include/cpython/coreconfig.h
parentf72346c47537657a287a862305f65eb5d7594fbf (diff)
downloadcpython-a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101.zip
cpython-a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101.tar.gz
cpython-a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101.tar.bz2
bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536)
* Initialize _PyPreConfig.dev_mode to -1. * _PyPreConfig_Read(): coreconfig has the priority over preconfig. * _PyCoreConfig_Read() now calls _PyPreCmdline_Read() internally. * config_from_cmdline() now pass _PyPreCmdline to config_read(). * Add _PyPreCmdline_Copy().
Diffstat (limited to 'Include/cpython/coreconfig.h')
-rw-r--r--Include/cpython/coreconfig.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/coreconfig.h b/Include/cpython/coreconfig.h
index 8362209..bb086cb 100644
--- a/Include/cpython/coreconfig.h
+++ b/Include/cpython/coreconfig.h
@@ -115,7 +115,9 @@ typedef struct {
.isolated = -1, \
.use_environment = -1, \
.coerce_c_locale = -1, \
- .utf8_mode = -1}
+ .utf8_mode = -1, \
+ .dev_mode = -1, \
+ .allocator = NULL}
/* --- _PyCoreConfig ---------------------------------------------- */