summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-19 12:19:27 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-19 12:19:27 (GMT)
commitf5df46d701d29baf738365da6fcf1b8a3ceabb71 (patch)
tree064bca37c5ccc89644057a9347b7803f6db74240 /Include/pystate.h
parent130fb175781ca6902ab8f711e2175206ecb74fcc (diff)
downloadcpython-f5df46d701d29baf738365da6fcf1b8a3ceabb71.zip
cpython-f5df46d701d29baf738365da6fcf1b8a3ceabb71.tar.gz
cpython-f5df46d701d29baf738365da6fcf1b8a3ceabb71.tar.bz2
Add a low-level API to access interpreters, for David Beazley.
SF patch #436376.
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 41024e8..712e9dc 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -100,6 +100,13 @@ extern DL_IMPORT(PyThreadState *) _PyThreadState_Current;
#define PyThreadState_GET() (_PyThreadState_Current)
#endif
+/* Routines for advanced debuggers, requested by David Beazley.
+ Don't use unless you know what you are doing! */
+DL_IMPORT(PyInterpreterState *) PyInterpreterState_Head(void);
+DL_IMPORT(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *);
+DL_IMPORT(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *);
+DL_IMPORT(PyThreadState *) PyThreadState_Next(PyThreadState *);
+
#ifdef __cplusplus
}
#endif