diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-28 16:21:52 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-28 16:21:52 (GMT) |
commit | b1715f131fffbe8fb91d66a70ccf3fe15c781001 (patch) | |
tree | 80fd937ded95016e916f2602b2ef99dee94b1837 /Python | |
parent | 6d46a91dc08af57b395b55d10f93e8d5c54372cd (diff) | |
download | cpython-b1715f131fffbe8fb91d66a70ccf3fe15c781001.zip cpython-b1715f131fffbe8fb91d66a70ccf3fe15c781001.tar.gz cpython-b1715f131fffbe8fb91d66a70ccf3fe15c781001.tar.bz2 |
use stack altering macros here
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index a5d465c..6141c13 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2537,14 +2537,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) v = SECOND(); w = THIRD(); tp = FOURTH(); - exc = stack_pointer[-5]; - tb = stack_pointer[-6]; - exit_func = stack_pointer[-7]; - stack_pointer[-7] = tb; - stack_pointer[-6] = exc; - stack_pointer[-5] = tp; + exc = PEEK(5); + tb = PEEK(6); + exit_func = PEEK(7); + SET_VALUE(7, tb); + SET_VALUE(6, exc); + SET_VALUE(5, tp); /* UNWIND_EXCEPT_BLOCK will pop this off. */ - FOURTH() = NULL; + SET_FOURTH(NULL); /* We just shifted the stack down, so we have to tell the except handler block that the values are lower than it expects. */ |