From 919c7802999ce403bb91c9c47e5e707d1ee6342a 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 --- error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index fc89f374b8..c8a6ccdf1b 100644 --- a/error.c +++ b/error.c @@ -1112,10 +1112,10 @@ exc_equal(VALUE exc, VALUE obj) if (exc == obj) return Qtrue; if (rb_obj_class(exc) != rb_obj_class(obj)) { - int status = 0; + int state; - obj = rb_protect(try_convert_to_exception, obj, &status); - if (status || obj == Qundef) { + obj = rb_protect(try_convert_to_exception, obj, &state); + if (state || obj == Qundef) { rb_set_errinfo(Qnil); return Qfalse; } -- cgit v1.2.3