summaryrefslogtreecommitdiffstats
path: root/Python/suggestions.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-08 17:03:03 (GMT)
committerGitHub <noreply@github.com>2022-11-08 17:03:03 (GMT)
commit52f91c642b72003c57fc1fb855beab6dfab155b7 (patch)
tree051abac024b2749d6e54c7c933a5c46fea3e2b63 /Python/suggestions.c
parentd45cc80452b11d5ffc5c9721f74a3e3df8ecad8b (diff)
downloadcpython-52f91c642b72003c57fc1fb855beab6dfab155b7.zip
cpython-52f91c642b72003c57fc1fb855beab6dfab155b7.tar.gz
cpython-52f91c642b72003c57fc1fb855beab6dfab155b7.tar.bz2
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/suggestions.c')
-rw-r--r--Python/suggestions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/suggestions.c b/Python/suggestions.c
index 239245d..eee61b2 100644
--- a/Python/suggestions.c
+++ b/Python/suggestions.c
@@ -1,6 +1,7 @@
#include "Python.h"
#include "pycore_frame.h"
-#include "pycore_runtime_init.h" // _Py_ID()
+#include "pycore_runtime.h" // _PyRuntime
+#include "pycore_global_objects.h" // _Py_ID()
#include "pycore_pyerrors.h"
#include "pycore_code.h" // _PyCode_GetVarnames()