summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pylifecycle.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-26 15:58:50 (GMT)
committerGitHub <noreply@github.com>2019-03-26 15:58:50 (GMT)
commitf8ba6f5afc317d1be3025db1be410ac66a7e5a27 (patch)
tree531f75949653a2843d2834f253d26f5d366e6111 /Include/cpython/pylifecycle.h
parent414b1cde93764cdabb0798b02af4dd7df954424d (diff)
downloadcpython-f8ba6f5afc317d1be3025db1be410ac66a7e5a27.zip
cpython-f8ba6f5afc317d1be3025db1be410ac66a7e5a27.tar.gz
cpython-f8ba6f5afc317d1be3025db1be410ac66a7e5a27.tar.bz2
bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563)
* _PyCoreConfig_Write() now updates _PyRuntime.preconfig * Remove _PyPreCmdline_Copy() * _PyPreCmdline_Read() now accepts _PyPreConfig and _PyCoreConfig optional configurations. * Rename _PyPreConfig_ReadFromArgv() to _PyPreConfig_Read(). Simplify the code. * Calling _PyCoreConfig_Read() no longer adds the warning options twice: don't add a warning option if it's already in the list. * Rename _PyCoreConfig_ReadFromArgv() to _PyCoreConfig_Read(). * Rename config_from_cmdline() to _PyCoreConfig_ReadFromArgv(). * Add more assertions on _PyCoreConfig in _PyCoreConfig_Read(). * Move some functions. * Make some config functions private.
Diffstat (limited to 'Include/cpython/pylifecycle.h')
-rw-r--r--Include/cpython/pylifecycle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/pylifecycle.h b/Include/cpython/pylifecycle.h
index e32e54c..0c5f74e 100644
--- a/Include/cpython/pylifecycle.h
+++ b/Include/cpython/pylifecycle.h
@@ -21,8 +21,8 @@ PyAPI_FUNC(_PyInitError) _Py_PreInitializeFromConfig(
const _PyCoreConfig *coreconfig);
PyAPI_FUNC(_PyInitError) _Py_InitializeCore(
- PyInterpreterState **interp,
- const _PyCoreConfig *);
+ const _PyCoreConfig *config,
+ PyInterpreterState **interp);
PyAPI_FUNC(int) _Py_IsCoreInitialized(void);