diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-10 22:41:31 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-10 22:41:31 +0000 |
commit | 7c06b590c066c6b354b0347a68bd9817268651b8 (patch) | |
tree | 7ebb9bb01c5686f835c5be10b41fb97be1f5c295 /util.c | |
parent | 32f822de0a58c2cc8f1a23844b97246c433bb418 (diff) | |
download | perl-7c06b590c066c6b354b0347a68bd9817268651b8.tar.gz |
Remove runlevel. It was used to count how many runops() calls
we were in the process of executing, and longjmp() to the topmost
one (if not already there). We use a null top_env->je_prev
to distinguish that now.
p4raw-id: //depot/win32/perl@223
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1170,7 +1170,6 @@ die(pat, va_alist) dTHR; va_list args; char *message; - I32 oldrunlevel = runlevel; int was_in_eval = in_eval; HV *stash; GV *gv; @@ -1231,10 +1230,10 @@ die(pat, va_alist) restartop = die_where(message); #ifdef USE_THREADS DEBUG_L(PerlIO_printf(PerlIO_stderr(), - "%p: die: restartop = %p, was_in_eval = %d, oldrunlevel = %d\n", - thr, restartop, was_in_eval, oldrunlevel)); + "%p: die: restartop = %p, was_in_eval = %d, top_env = %p\n", + thr, restartop, was_in_eval, top_env)); #endif /* USE_THREADS */ - if ((!restartop && was_in_eval) || oldrunlevel > 1) + if ((!restartop && was_in_eval) || top_env->je_prev) JMPENV_JUMP(3); return restartop; } @@ -2549,8 +2548,6 @@ struct thread *t; start_env.je_mustcatch = TRUE; top_env = &start_env; - runlevel = 0; /* Let entering sub do increment */ - in_eval = FALSE; restartop = 0; |