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 --- eval_error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval_error.c') diff --git a/eval_error.c b/eval_error.c index cd565ccf95..ba3f9708ac 100644 --- a/eval_error.c +++ b/eval_error.c @@ -175,7 +175,7 @@ rb_threadptr_error_print(rb_thread_t *volatile th, volatile VALUE errinfo) rb_thread_raised_clear(th); TH_PUSH_TAG(th); - if (TH_EXEC_TAG() == 0) { + if (TH_EXEC_TAG() == TAG_NONE) { errat = rb_get_backtrace(errinfo); } else if (errat == Qundef) { -- cgit v1.2.3