summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-05 23:36:56 (GMT)
committerGitHub <noreply@github.com>2019-03-05 23:36:56 (GMT)
commit7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c (patch)
treeb38d3476031398b85e041b8ac45f85d07a043b38 /Include
parenta9df651eb4c18a07ec309df190419613e95cba7b (diff)
downloadcpython-7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c.zip
cpython-7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c.tar.gz
cpython-7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c.tar.bz2
bpo-36142: _PyPreConfig_Write() sets the allocator (GH-12186)
* _PyPreConfig_Write() now sets the memory allocator. * _PyPreConfig_Write() gets a return type: _PyInitError. * _Py_InitializeCore() now reads and writes the pre-configuration (set the memory allocator, configure the locale) before reading and writing the core configuration.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_coreconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_coreconfig.h b/Include/internal/pycore_coreconfig.h
index 8df182c..b34416b 100644
--- a/Include/internal/pycore_coreconfig.h
+++ b/Include/internal/pycore_coreconfig.h
@@ -59,7 +59,7 @@ PyAPI_FUNC(int) _PyPreConfig_AsDict(const _PyPreConfig *config,
PyObject *dict);
PyAPI_FUNC(_PyInitError) _PyPreConfig_ReadFromArgv(_PyPreConfig *config,
const _PyArgv *args);
-PyAPI_FUNC(void) _PyPreConfig_Write(const _PyPreConfig *config);
+PyAPI_FUNC(_PyInitError) _PyPreConfig_Write(const _PyPreConfig *config);
/* --- _PyCoreConfig ---------------------------------------------- */