[Python-checkins] cpython (3.5): pystate.h: fix _PyThreadState_UncheckedGet()
victor.stinner
python-checkins at python.org
Thu Mar 24 19:54:56 EDT 2016
https://hg.python.org/cpython/rev/fc82d1ccf6ae
changeset: 100728:fc82d1ccf6ae
branch: 3.5
parent: 100725:1de90a7065ba
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 25 00:54:18 2016 +0100
summary:
pystate.h: fix _PyThreadState_UncheckedGet()
Declare the function even if thread support is disabled.
files:
Include/pystate.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/Include/pystate.h b/Include/pystate.h
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -173,11 +173,9 @@
* the caller needn't check for NULL). */
PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
-#ifdef WITH_THREAD
/* Similar to PyThreadState_Get(), but don't issue a fatal error
* if it is NULL. */
PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void);
-#endif
PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
PyAPI_FUNC(PyObject *) PyThreadState_GetDict(void);
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list