diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-22 14:45:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 14:45:56 (GMT) |
commit | d228825e08883fc13f35eb91435f95d32524931c (patch) | |
tree | 5d886d54a07638519b238fb32daa3586a239f76b /Parser | |
parent | e5252c6127ad788b39221982964f935bd1513028 (diff) | |
download | cpython-d228825e08883fc13f35eb91435f95d32524931c.zip cpython-d228825e08883fc13f35eb91435f95d32524931c.tar.gz cpython-d228825e08883fc13f35eb91435f95d32524931c.tar.bz2 |
gh-106320: Remove _PyOS_ReadlineTState API (#107034)
Remove _PyOS_ReadlineTState variable from the public C API.
The symbol is still exported for the readline shared extension.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/myreadline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 7074aba..8153873 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -20,7 +20,9 @@ #endif /* MS_WINDOWS */ -PyThreadState* _PyOS_ReadlineTState = NULL; +// Export the symbol since it's used by the readline shared extension +PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState; +PyThreadState *_PyOS_ReadlineTState = NULL; static PyThread_type_lock _PyOS_ReadlineLock = NULL; |