aboutsummaryrefslogtreecommitdiffstats
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 07:25:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 07:25:52 +0000
commit919c7802999ce403bb91c9c47e5e707d1ee6342a (patch)
tree479ee29eaecd26251ee6c4a783ad9c52db7f541f /eval_intern.h
parentd3b8612d3ffc9606d9e4da84e4cf834a35cca4c5 (diff)
downloadruby-919c7802999ce403bb91c9c47e5e707d1ee6342a.tar.gz
use "enum ruby_tag_type" and TAG_NONE.
Return value of EXEC_TAG() is saved by "int state". Instead of "int", use "enum ruby_tag_type". First EXEC_TAG() value should be 0, so that define TAG_NONE (= 0) and use it. Some code used "status" instead of "state". To make them clear, rename them to state. We can change variable name from "state" to "tag_state", but this ticket doesn't contain it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 399faf3f90..5f9e57152d 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -160,14 +160,14 @@ LONG WINAPI rb_w32_stack_overflow_handler(struct _EXCEPTION_POINTERS *);
static inline int
rb_threadptr_tag_state(rb_thread_t *th)
{
- int state = th->state;
+ enum ruby_tag_type state = th->state;
th->state = 0;
return state;
}
-NORETURN(static inline void rb_threadptr_tag_jump(rb_thread_t *, int));
+NORETURN(static inline void rb_threadptr_tag_jump(rb_thread_t *, enum ruby_tag_type st));
static inline void
-rb_threadptr_tag_jump(rb_thread_t *th, int st)
+rb_threadptr_tag_jump(rb_thread_t *th, enum ruby_tag_type st)
{
th->state = st;
ruby_longjmp(th->tag->buf, 1);