Simplify rescue stack management; ref #3683

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-01 17:56:03 +09:00
parent 7ff90b52d8
commit eb5a606fe2
2 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ typedef struct {
struct RProc *proc;
mrb_value *stackent;
int nregs;
int ridx;
int rpos;
int epos;
struct REnv *env;
mrb_code *pc; /* return address */
@@ -141,7 +141,7 @@ struct mrb_context {
mrb_callinfo *cibase, *ciend;
mrb_code **rescue; /* exception handler stack */
int rsize;
int rsize, ridx;
struct RProc **ensure; /* ensure handler stack */
int esize, eidx;