aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 08:48:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 08:48:41 +0000
commit8a203c8d44d79df4a394012bf71afd6b3ef40577 (patch)
tree4cfcfa161f4e7d11fb293dce52ff59c985934237 /vm.c
parentd480f6889ac7d2a04bf65cbc066a8dc82c603e03 (diff)
downloadruby-8a203c8d44d79df4a394012bf71afd6b3ef40577.tar.gz
rename th->state to th->tag_state.
* vm_core.h (rb_thread_t): rename rb_thread_t::state to tag_state to make it clear. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm.c b/vm.c
index a41f175362..1b2088475a 100644
--- a/vm.c
+++ b/vm.c
@@ -1476,7 +1476,7 @@ vm_iter_break(rb_thread_t *th, VALUE val)
}
#endif
- th->state = TAG_BREAK;
+ th->tag_state = TAG_BREAK;
th->errinfo = (VALUE)THROW_DATA_NEW(val, target_cfp, TAG_BREAK);
TH_JUMP_TAG(th, TAG_BREAK);
}
@@ -1787,9 +1787,9 @@ vm_exec(rb_thread_t *th)
if ((state = EXEC_TAG()) == TAG_NONE) {
vm_loop_start:
result = vm_exec_core(th, initial);
- if ((state = th->state) != TAG_NONE) {
+ if ((state = th->tag_state) != TAG_NONE) {
err = (struct vm_throw_data *)result;
- th->state = TAG_NONE;
+ th->tag_state = TAG_NONE;
goto exception_handler;
}
}
@@ -1939,7 +1939,7 @@ vm_exec(rb_thread_t *th)
#endif
}
th->errinfo = Qnil;
- th->state = TAG_NONE;
+ th->tag_state = TAG_NONE;
goto vm_loop_start;
}
}
@@ -1989,7 +1989,7 @@ vm_exec(rb_thread_t *th)
catch_iseq->body->stack_max);
state = 0;
- th->state = TAG_NONE;
+ th->tag_state = TAG_NONE;
th->errinfo = Qnil;
goto vm_loop_start;
}