From 2108e55c0b8fd31cec8968868a56876a22f3104c Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 23 Jun 2017 07:25:52 +0000 Subject: 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 --- vm_backtrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_backtrace.c') diff --git a/vm_backtrace.c b/vm_backtrace.c index ac9a59e4ba..ed0b33c8da 100644 --- a/vm_backtrace.c +++ b/vm_backtrace.c @@ -1174,7 +1174,7 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data) { rb_debug_inspector_t dbg_context; rb_thread_t *th = GET_THREAD(); - int state; + enum ruby_tag_type state; volatile VALUE MAYBE_UNUSED(result); dbg_context.th = th; @@ -1184,7 +1184,7 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data) dbg_context.contexts = collect_caller_bindings(th); TH_PUSH_TAG(th); - if ((state = EXEC_TAG()) == 0) { + if ((state = EXEC_TAG()) == TAG_NONE) { result = (*func)(&dbg_context, data); } TH_POP_TAG(); -- cgit v1.2.3