summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-16 16:30:15 (GMT)
committerGitHub <noreply@github.com>2019-05-16 16:30:15 (GMT)
commit54b43bb3bb88339b63182b3515cda3efa530ed62 (patch)
tree948f321e0b2b9925eec945d316cd3e010da69852 /Include
parent9ef5dcaa0b3c7c7ba28dbb3ec0c9507d9d05e3a9 (diff)
downloadcpython-54b43bb3bb88339b63182b3515cda3efa530ed62.zip
cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.tar.gz
cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.tar.bz2
bpo-36763: Add _PyCoreConfig.configure_c_stdio (GH-13363)
Add tests for configure_c_stdio and pathconfig_warnings parameters.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/coreconfig.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/cpython/coreconfig.h b/Include/cpython/coreconfig.h
index c2c5566..b531118 100644
--- a/Include/cpython/coreconfig.h
+++ b/Include/cpython/coreconfig.h
@@ -312,6 +312,14 @@ typedef struct {
!Py_NoUserSiteDirectory. */
int user_site_directory;
+ /* If non-zero, configure C standard steams (stdio, stdout,
+ stderr):
+
+ - Set O_BINARY mode on Windows.
+ - If buffered_stdio is equal to zero, make streams unbuffered.
+ Otherwise, enable streams buffering if interactive is non-zero. */
+ int configure_c_stdio;
+
/* If equal to 0, enable unbuffered mode: force the stdout and stderr
streams to be unbuffered.
@@ -439,6 +447,7 @@ typedef struct {
.verbose = -1, \
.quiet = -1, \
.user_site_directory = -1, \
+ .configure_c_stdio = 1, \
.buffered_stdio = -1, \
._install_importlib = 1, \
.check_hash_pycs_mode = NULL, \