mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018)
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags variables, rather than initializing cf_flags and cf_feature_version explicitly in each variable.
This commit is contained in:
parent
2c9b498759
commit
37d66d7d4b
8 changed files with 15 additions and 29 deletions
|
@ -524,7 +524,7 @@ pymain_run_python(int *exitcode)
|
|||
}
|
||||
}
|
||||
|
||||
PyCompilerFlags cf = {.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION};
|
||||
PyCompilerFlags cf = _PyCompilerFlags_INIT;
|
||||
|
||||
pymain_header(config);
|
||||
pymain_import_readline(config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue