summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_function.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-16 17:37:29 (GMT)
committerGitHub <noreply@github.com>2022-11-16 17:37:29 (GMT)
commit9db1e17c80217d7b18a2f44297d72acd10ee73d6 (patch)
tree4d0256b80f512133b1fb6db73a68da5bdbe22c5c /Include/internal/pycore_function.h
parent8211cf5d287acfd815b6a7f6471cdf83dcd2bb9b (diff)
downloadcpython-9db1e17c80217d7b18a2f44297d72acd10ee73d6.zip
cpython-9db1e17c80217d7b18a2f44297d72acd10ee73d6.tar.gz
cpython-9db1e17c80217d7b18a2f44297d72acd10ee73d6.tar.bz2
gh-81057: Move the global Dict-Related Versions to _PyRuntimeState (gh-99497)
We also move the global func version. https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Include/internal/pycore_function.h')
-rw-r--r--Include/internal/pycore_function.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_function.h b/Include/internal/pycore_function.h
index 1c87aa3..c95190f 100644
--- a/Include/internal/pycore_function.h
+++ b/Include/internal/pycore_function.h
@@ -8,6 +8,10 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
+struct _py_func_runtime_state {
+ uint32_t next_version;
+};
+
extern PyFunctionObject* _PyFunction_FromConstructor(PyFrameConstructor *constr);
extern uint32_t _PyFunction_GetVersionForCurrentState(PyFunctionObject *func);