diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-01-27 18:06:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 18:06:09 (GMT) |
commit | 247480a21cb165efdacc346a2d589dfc27e18283 (patch) | |
tree | 1c7b57e6ed3f527000d8440138483f7b299eb4de /Include | |
parent | 183f8d57fa5959e7578e7f470edc364edb23caca (diff) | |
download | cpython-247480a21cb165efdacc346a2d589dfc27e18283.zip cpython-247480a21cb165efdacc346a2d589dfc27e18283.tar.gz cpython-247480a21cb165efdacc346a2d589dfc27e18283.tar.bz2 |
bpo-46541: Generate the global objects initializer. (gh-30941)
This change is a prerequisite for generating code for other global objects (like strings in gh-30928).
(We borrowed some code from Tools/scripts/deepfreeze.py.)
https://bugs.python.org/issue46541
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index 72ca346..3b7f262 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -94,6 +94,8 @@ extern "C" { _PyBytes_SIMPLE_INIT(CH, 1) \ } + +/* The following is auto-generated by Tools/scripts/generate_global_objects.py. */ #define _Py_global_objects_INIT { \ .singletons = { \ .small_ints = { \ @@ -622,6 +624,7 @@ extern "C" { }, \ }, \ } +/* End auto-generated code */ #ifdef __cplusplus |