diff options
author | Michael W. Hudson <mwh@python.net> | 2002-11-08 12:53:11 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-11-08 12:53:11 (GMT) |
commit | 019a78e76d3542d4d56a08015e6980f8c8aeaba1 (patch) | |
tree | 33e0d463374c7f48218a94738d7e964d4e5f0a46 /Include | |
parent | 1f04610b497c733189212386152219040e18dacb (diff) | |
download | cpython-019a78e76d3542d4d56a08015e6980f8c8aeaba1.zip cpython-019a78e76d3542d4d56a08015e6980f8c8aeaba1.tar.gz cpython-019a78e76d3542d4d56a08015e6980f8c8aeaba1.tar.bz2 |
Assorted patches from Armin Rigo:
[ 617309 ] getframe hook (Psyco #1)
[ 617311 ] Tiny profiling info (Psyco #2)
[ 617312 ] debugger-controlled jumps (Psyco #3)
These are forward ports from 2.2.2.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 9b61ad7..d4233bf 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -67,6 +67,8 @@ typedef struct _ts { PyObject *dict; + int tick_counter; + /* XXX signal handlers should also be here */ } PyThreadState; @@ -105,6 +107,9 @@ PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *); +/* hook for PyEval_GetFrame(), requested for Psyco */ +PyAPI_DATA(unaryfunc) _PyThreadState_GetFrame; + #ifdef __cplusplus } #endif |