summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pystate.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 15:40:56 (GMT)
committerGitHub <noreply@github.com>2023-08-24 15:40:56 (GMT)
commitf1ae706ca53d43890cf09ccf052d783e97ba4b28 (patch)
treed4f8bdd2462bd3091674c068f53ef456e368d2a2 /Include/internal/pycore_pystate.h
parent52c6a6e48a5fa12af401810722cfcad859e9881a (diff)
downloadcpython-f1ae706ca53d43890cf09ccf052d783e97ba4b28.zip
cpython-f1ae706ca53d43890cf09ccf052d783e97ba4b28.tar.gz
cpython-f1ae706ca53d43890cf09ccf052d783e97ba4b28.tar.bz2
gh-107211: No longer export internal functions (7) (#108425)
No longer export _PyUnicode_FromId() internal C API function. Change comment style to "// comment" and add comment explaining why other functions have to be exported. Update Tools/build/generate_token.py to update Include/internal/pycore_token.h comments.
Diffstat (limited to 'Include/internal/pycore_pystate.h')
-rw-r--r--Include/internal/pycore_pystate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index f6ca910..2e601cc 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -66,6 +66,9 @@ _Py_ThreadCanHandleSignals(PyInterpreterState *interp)
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
extern _Py_thread_local PyThreadState *_Py_tss_tstate;
#endif
+
+// Export for most shared extensions, used via _PyThreadState_GET() static
+// inline function.
PyAPI_FUNC(PyThreadState *) _PyThreadState_GetCurrent(void);
/* Get the current Python thread state.