summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-06-12 16:38:18 (GMT)
committerGitHub <noreply@github.com>2022-06-12 16:38:18 (GMT)
commit93310879665368445f95df2f3d9be7fb82435248 (patch)
treee9ae1523092021d4979ef93ac77e9f83eb15e87d /Include
parentae1ca74513e792b09c8057a87aa28715b5c9f50b (diff)
downloadcpython-93310879665368445f95df2f3d9be7fb82435248.zip
cpython-93310879665368445f95df2f3d9be7fb82435248.tar.gz
cpython-93310879665368445f95df2f3d9be7fb82435248.tar.bz2
GH-90699: use statically allocated strings in typeobject.c (gh-93751)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_global_strings.h2
-rw-r--r--Include/internal/pycore_runtime_init.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h
index ca97062..af6c5eb 100644
--- a/Include/internal/pycore_global_strings.h
+++ b/Include/internal/pycore_global_strings.h
@@ -90,6 +90,7 @@ struct _Py_global_strings {
STRUCT_FOR_ID(__delete__)
STRUCT_FOR_ID(__delitem__)
STRUCT_FOR_ID(__dict__)
+ STRUCT_FOR_ID(__dictoffset__)
STRUCT_FOR_ID(__dir__)
STRUCT_FOR_ID(__divmod__)
STRUCT_FOR_ID(__doc__)
@@ -206,6 +207,7 @@ struct _Py_global_strings {
STRUCT_FOR_ID(__typing_subst__)
STRUCT_FOR_ID(__typing_unpacked_tuple_args__)
STRUCT_FOR_ID(__warningregistry__)
+ STRUCT_FOR_ID(__weaklistoffset__)
STRUCT_FOR_ID(__weakref__)
STRUCT_FOR_ID(__xor__)
STRUCT_FOR_ID(_abc_impl)
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h
index 5e57ac6..2420d81 100644
--- a/Include/internal/pycore_runtime_init.h
+++ b/Include/internal/pycore_runtime_init.h
@@ -712,6 +712,7 @@ extern "C" {
INIT_ID(__delete__), \
INIT_ID(__delitem__), \
INIT_ID(__dict__), \
+ INIT_ID(__dictoffset__), \
INIT_ID(__dir__), \
INIT_ID(__divmod__), \
INIT_ID(__doc__), \
@@ -828,6 +829,7 @@ extern "C" {
INIT_ID(__typing_subst__), \
INIT_ID(__typing_unpacked_tuple_args__), \
INIT_ID(__warningregistry__), \
+ INIT_ID(__weaklistoffset__), \
INIT_ID(__weakref__), \
INIT_ID(__xor__), \
INIT_ID(_abc_impl), \