summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embed.h3
-rw-r--r--interp.sym1
-rw-r--r--perl.h1
-rw-r--r--pp_ctl.c5
-rw-r--r--run.c5
-rw-r--r--thread.h3
-rw-r--r--util.c9
7 files changed, 4 insertions, 23 deletions
diff --git a/embed.h b/embed.h
index 46709be1c1..2c5bf1bf42 100644
--- a/embed.h
+++ b/embed.h
@@ -1331,7 +1331,6 @@
#define restartop (curinterp->Irestartop)
#define rightgv (curinterp->Irightgv)
#define rs (curinterp->Irs)
-#define runlevel (curinterp->Irunlevel)
#define sawampersand (curinterp->Isawampersand)
#define sawstudy (curinterp->Isawstudy)
#define sawvec (curinterp->Isawvec)
@@ -1484,7 +1483,6 @@
#define Irestartop restartop
#define Irightgv rightgv
#define Irs rs
-#define Irunlevel runlevel
#define Isawampersand sawampersand
#define Isawstudy sawstudy
#define Isawvec sawvec
@@ -1646,7 +1644,6 @@
#define restartop Perl_restartop
#define rightgv Perl_rightgv
#define rs Perl_rs
-#define runlevel Perl_runlevel
#define sawampersand Perl_sawampersand
#define sawstudy Perl_sawstudy
#define sawvec Perl_sawvec
diff --git a/interp.sym b/interp.sym
index ae064a8031..a12ea99c85 100644
--- a/interp.sym
+++ b/interp.sym
@@ -111,7 +111,6 @@ preprocess
restartop
rightgv
rs
-runlevel
sawampersand
sawstudy
sawvec
diff --git a/perl.h b/perl.h
index 8e82d2d56c..0523187e5e 100644
--- a/perl.h
+++ b/perl.h
@@ -1943,7 +1943,6 @@ IEXT I32 Icxstack_ix IINIT(-1);
IEXT I32 Icxstack_max IINIT(128);
IEXT JMPENV Istart_env; /* empty startup sigjmp() environment */
IEXT JMPENV * Itop_env; /* ptr. to current sigjmp() environment */
-IEXT I32 Irunlevel;
/* stack stuff */
IEXT AV * Icurstack; /* THE STACK */
diff --git a/pp_ctl.c b/pp_ctl.c
index 915ee6c588..f8cff58567 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2079,20 +2079,18 @@ OP *o;
{
dTHR;
int ret;
- I32 oldrunlevel = runlevel;
OP *oldop = op;
dJMPENV;
op = o;
#ifdef DEBUGGING
assert(CATCH_GET == TRUE);
- DEBUG_l(deb("(Setting up local jumplevel, runlevel = %ld)\n", (long)runlevel+1));
+ DEBUG_l(deb("Setting up local jumplevel %p, was %p\n", &cur_env, top_env));
#endif
JMPENV_PUSH(ret);
switch (ret) {
default: /* topmost level handles it */
JMPENV_POP;
- runlevel = oldrunlevel;
op = oldop;
JMPENV_JUMP(ret);
/* NOTREACHED */
@@ -2109,7 +2107,6 @@ OP *o;
break;
}
JMPENV_POP;
- runlevel = oldrunlevel;
op = oldop;
return Nullop;
}
diff --git a/run.c b/run.c
index 1e1001d4ad..87633d1804 100644
--- a/run.c
+++ b/run.c
@@ -22,8 +22,6 @@ dEXT char *watchok;
int
runops_standard() {
dTHR;
- SAVEI32(runlevel);
- runlevel++;
while ( op = (*op->op_ppaddr)(ARGS) ) ;
@@ -42,9 +40,6 @@ runops_debug() {
return 0;
}
- SAVEI32(runlevel);
- runlevel++;
-
do {
if (debug) {
if (watchaddr != 0 && *watchaddr != watchok)
diff --git a/thread.h b/thread.h
index f18b38b797..4f32247757 100644
--- a/thread.h
+++ b/thread.h
@@ -211,7 +211,6 @@ struct thread {
AV * Tcurstack;
AV * Tmainstack;
JMPENV * Ttop_env;
- I32 Trunlevel;
/* XXX Sort stuff, firstgv, secongv and so on? */
@@ -310,7 +309,6 @@ typedef struct condpair {
#undef start_env
#undef toptarget
#undef top_env
-#undef runlevel
#undef in_eval
#undef restartop
#undef delaymagic
@@ -382,7 +380,6 @@ typedef struct condpair {
#define localizing (thr->Tlocalizing)
#define top_env (thr->Ttop_env)
-#define runlevel (thr->Trunlevel)
#define start_env (thr->Tstart_env)
#else
diff --git a/util.c b/util.c
index f11c665330..9da5b7b152 100644
--- a/util.c
+++ b/util.c
@@ -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;