summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-08-01 00:13:04 (GMT)
committerGitHub <noreply@github.com>2018-08-01 00:13:04 (GMT)
commitb75d7e243512afcfb2285e6471262478383e09db (patch)
treea669ce23fbfe84ddbbb5b84ec0112df60ccf5f73 /Include
parent8ed317f1ca42a43df14282bbc3ccc0b5610432f4 (diff)
downloadcpython-b75d7e243512afcfb2285e6471262478383e09db.zip
cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.gz
cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.bz2
bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591)
Modify frozenmain.c to use _Py_InitializeFromConfig().
Diffstat (limited to 'Include')
-rw-r--r--Include/pystate.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 612e7de..bc1e23e 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -235,6 +235,12 @@ typedef struct {
See PEP 552 "Deterministic pycs" for more details. */
const char *_check_hash_pycs_mode;
+
+ /* If greater than 0, suppress _PyPathConfig_Calculate() warnings.
+
+ If set to -1 (default), inherit Py_FrozenFlag value. */
+ int _frozen;
+
} _PyCoreConfig;
#ifdef MS_WINDOWS
@@ -269,7 +275,8 @@ typedef struct {
.user_site_directory = -1, \
.unbuffered_stdio = -1, \
_PyCoreConfig_WINDOWS_INIT \
- ._install_importlib = 1}
+ ._install_importlib = 1, \
+ ._frozen = -1}
/* Note: _PyCoreConfig_INIT sets other fields to 0/NULL */
/* Placeholders while working on the new configuration API