diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-12-31 18:04:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 18:04:13 (GMT) |
commit | 0a37a30037073a4a9ba45e560c8445048e5f2ba2 (patch) | |
tree | 9728950510e4e4ffe0edecca86dcf305393f5a87 /Python/pylifecycle.c | |
parent | 6c6d3a46087bacb9c767c8cf2185505348d3796d (diff) | |
download | cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.zip cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.gz cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.bz2 |
closes bpo-32460: ensure all non-static globals have initializers (#5061)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 560d0e3..2f61db0 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -108,17 +108,17 @@ _Py_IsFinalizing(void) /* Global configuration variable declarations are in pydebug.h */ /* XXX (ncoghlan): move those declarations to pylifecycle.h? */ -int Py_DebugFlag; /* Needed by parser.c */ -int Py_VerboseFlag; /* Needed by import.c */ -int Py_QuietFlag; /* Needed by sysmodule.c */ -int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */ -int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */ +int Py_DebugFlag = 0; /* Needed by parser.c */ +int Py_VerboseFlag = 0; /* Needed by import.c */ +int Py_QuietFlag = 0; /* Needed by sysmodule.c */ +int Py_InteractiveFlag = 0; /* Needed by Py_FdIsInteractive() below */ +int Py_InspectFlag = 0; /* Needed to determine whether to exit at SystemExit */ int Py_OptimizeFlag = 0; /* Needed by compile.c */ -int Py_NoSiteFlag; /* Suppress 'import site' */ -int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */ -int Py_FrozenFlag; /* Needed by getpath.c */ -int Py_IgnoreEnvironmentFlag; /* e.g. PYTHONPATH, PYTHONHOME */ -int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.pyc) */ +int Py_NoSiteFlag = 0; /* Suppress 'import site' */ +int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */ +int Py_FrozenFlag = 0; /* Needed by getpath.c */ +int Py_IgnoreEnvironmentFlag = 0; /* e.g. PYTHONPATH, PYTHONHOME */ +int Py_DontWriteBytecodeFlag = 0; /* Suppress writing bytecode files (*.pyc) */ int Py_NoUserSiteDirectory = 0; /* for -s and site.py */ int Py_UnbufferedStdioFlag = 0; /* Unbuffered binary std{in,out,err} */ int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */ |