diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2019-05-02 03:51:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 03:51:56 (GMT) |
commit | cb9fbd35885a8921b9df99e801df4f82e3ba336b (patch) | |
tree | ac897ce5cd21edf057576367de97bd4c6ed0c85d /Include/cpython | |
parent | 11e4a941e9c6225776a986b05230a1963e83f4fb (diff) | |
download | cpython-cb9fbd35885a8921b9df99e801df4f82e3ba336b.zip cpython-cb9fbd35885a8921b9df99e801df4f82e3ba336b.tar.gz cpython-cb9fbd35885a8921b9df99e801df4f82e3ba336b.tar.bz2 |
bpo-36763: Make _PyCoreConfig.check_hash_pycs_mode public (GH-13052)
_PyCoreConfig: Rename _check_hash_pycs_mode field to
check_hash_pycs_mode (make it public) and change its type from "const
char*" to "wchar_t*".
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/coreconfig.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Include/cpython/coreconfig.h b/Include/cpython/coreconfig.h index 5743bf5..99388e6 100644 --- a/Include/cpython/coreconfig.h +++ b/Include/cpython/coreconfig.h @@ -363,7 +363,7 @@ typedef struct { Needed by freeze_importlib. */ int _install_importlib; - /* Value of the --check-hash-based-pycs configure option. Valid values: + /* Value of the --check-hash-based-pycs command line option: - "default" means the 'check_source' flag in hash-based pycs determines invalidation @@ -372,11 +372,10 @@ typedef struct { - "never" causes the interpreter to always assume hash-based pycs are valid - Set by the --check-hash-based-pycs command line option. The default value is "default". See PEP 552 "Deterministic pycs" for more details. */ - const char *_check_hash_pycs_mode; + wchar_t *check_hash_pycs_mode; /* If greater than 0, suppress _PyPathConfig_Calculate() warnings. @@ -418,7 +417,7 @@ typedef struct { .user_site_directory = -1, \ .buffered_stdio = -1, \ ._install_importlib = 1, \ - ._check_hash_pycs_mode = "default", \ + .check_hash_pycs_mode = NULL, \ ._frozen = -1, \ ._init_main = 1} /* Note: _PyCoreConfig_INIT sets other fields to 0/NULL */ |