mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
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
This commit is contained in:
parent
d45cc80452
commit
52f91c642b
15 changed files with 7193 additions and 7098 deletions
|
|
@ -8,8 +8,9 @@
|
|||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "pycore_call.h" // _PyObject_CallNoArgs()
|
||||
#include "pycore_runtime_init.h" // _Py_ID()
|
||||
#include "pycore_call.h" // _PyObject_CallNoArgs()
|
||||
#include "pycore_runtime.h" // _PyRuntime
|
||||
#include "pycore_global_objects.h" // _Py_ID()
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@
|
|||
#define DONT_USE_SEH
|
||||
#endif
|
||||
|
||||
#include "pycore_runtime_init.h"
|
||||
#include "pycore_runtime.h" // _PyRuntime
|
||||
#include "pycore_global_objects.h" // _Py_ID()
|
||||
|
||||
#define CTYPES_CAPSULE_NAME_PYMEM "_ctypes pymem"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue