summaryrefslogtreecommitdiff
path: root/eval_intern.h
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
commita64801c1e95e127ad47de1d6d8fdb3f3390a9687 (patch)
tree4cfcfa161f4e7d11fb293dce52ff59c985934237 /eval_intern.h
parenta90c696b8bb67eecc5b415d58f55705c0bf3f8f8 (diff)
downloadbundler-a64801c1e95e127ad47de1d6d8fdb3f3390a9687.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 'eval_intern.h')
-rw-r--r--eval_intern.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 5f9e57152d..a9b259a52c 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -156,12 +156,12 @@ LONG WINAPI rb_w32_stack_overflow_handler(struct _EXCEPTION_POINTERS *);
# define VAR_NOCLOBBERED(var) var
#endif
-/* clear th->state, and return the value */
+/* clear th->tag_state, and return the value */
static inline int
rb_threadptr_tag_state(rb_thread_t *th)
{
- enum ruby_tag_type state = th->state;
- th->state = 0;
+ enum ruby_tag_type state = th->tag_state;
+ th->tag_state = TAG_NONE;
return state;
}
@@ -169,7 +169,7 @@ NORETURN(static inline void rb_threadptr_tag_jump(rb_thread_t *, enum ruby_tag_t
static inline void
rb_threadptr_tag_jump(rb_thread_t *th, enum ruby_tag_type st)
{
- th->state = st;
+ th->tag_state = st;
ruby_longjmp(th->tag->buf, 1);
}