summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-12-01 19:50:58 (GMT)
committerGitHub <noreply@github.com>2017-12-01 19:50:58 (GMT)
commit0ea395ae964c9cd0f499e2ef0d0030c971201220 (patch)
tree92e86e1b1754d179c8dc4b397f4fa33e020a3aee /Include
parentebac19dad6263141d5db0a2c923efe049dba99d2 (diff)
downloadcpython-0ea395ae964c9cd0f499e2ef0d0030c971201220.zip
cpython-0ea395ae964c9cd0f499e2ef0d0030c971201220.tar.gz
cpython-0ea395ae964c9cd0f499e2ef0d0030c971201220.tar.bz2
bpo-32030: Add Python/pathconfig.c (#4668)
* Factorize code from PC/getpathp.c and Modules/getpath.c to remove duplicated code * rename pathconfig_clear() to _PyPathConfig_Clear() * Inline _PyPathConfig_Fini() in pymain_impl() and then remove it, since it's a oneliner
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pystate.h4
-rw-r--r--Include/pylifecycle.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/Include/internal/pystate.h b/Include/internal/pystate.h
index 50ad2fc..9d85319 100644
--- a/Include/internal/pystate.h
+++ b/Include/internal/pystate.h
@@ -52,6 +52,10 @@ typedef struct {
#define _PyPathConfig_INIT {.module_search_path = NULL}
+PyAPI_DATA(_PyPathConfig) _Py_path_config;
+
+PyAPI_FUNC(void) _PyPathConfig_Clear(_PyPathConfig *config);
+
/* Full Python runtime state */
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
index 3db8832..fa75169 100644
--- a/Include/pylifecycle.h
+++ b/Include/pylifecycle.h
@@ -105,7 +105,6 @@ PyAPI_FUNC(wchar_t *) Py_GetPath(void);
#ifdef Py_BUILD_CORE
PyAPI_FUNC(_PyInitError) _PyPathConfig_Init(
const _PyMainInterpreterConfig *main_config);
-PyAPI_FUNC(void) _PyPathConfig_Fini(void);
#endif
PyAPI_FUNC(void) Py_SetPath(const wchar_t *);
#ifdef MS_WINDOWS