diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-11-08 10:03:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 10:03:03 -0700 |
commit | 52f91c642b72003c57fc1fb855beab6dfab155b7 (patch) | |
tree | 051abac024b2749d6e54c7c933a5c46fea3e2b63 /Python/pylifecycle.c | |
parent | d45cc80452b11d5ffc5c9721f74a3e3df8ecad8b (diff) | |
download | cpython-52f91c642b72003c57fc1fb855beab6dfab155b7.tar.gz cpython-52f91c642b72003c57fc1fb855beab6dfab155b7.zip |
gh-90868: Adjust the Generated Objects (gh-99223)
We do the following:
* move the generated _PyUnicode_InitStaticStrings() to its own file
* move the generated _PyStaticObjects_CheckRefcnt() to its own file
* include pycore_global_objects.h in extension modules instead of pycore_runtime_init.h
These changes help us avoid including things that aren't needed.
https://github.com/python/cpython/issues/90868
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index e64849296c5..f3b64fe6d72 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -10,6 +10,7 @@ #include "pycore_fileutils.h" // _Py_ResetForceASCII() #include "pycore_floatobject.h" // _PyFloat_InitTypes() #include "pycore_genobject.h" // _PyAsyncGen_Fini() +#include "pycore_global_objects_fini_generated.h" // "_PyStaticObjects_CheckRefcnt() #include "pycore_import.h" // _PyImport_BootstrapImp() #include "pycore_initconfig.h" // _PyStatus_OK() #include "pycore_list.h" // _PyList_Fini() |