]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90868: Adjust the Generated Objects (gh-99223)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 8 Nov 2022 17:03:03 +0000 (10:03 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 17:03:03 +0000 (10:03 -0700)
commit52f91c642b72003c57fc1fb855beab6dfab155b7
tree051abac024b2749d6e54c7c933a5c46fea3e2b63
parentd45cc80452b11d5ffc5c9721f74a3e3df8ecad8b
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
15 files changed:
.gitattributes
Include/internal/pycore_global_objects_fini_generated.h [new file with mode: 0644]
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h [new file with mode: 0644]
Makefile.pre.in
Modules/_asynciomodule.c
Modules/_ctypes/callbacks.c
Modules/_ctypes/callproc.c
Modules/_json.c
Objects/unicodeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/pylifecycle.c
Python/suggestions.c
Tools/build/generate_global_objects.py