[前][次][番号順一覧][スレッド一覧]

ruby-changes:73982

From: S-H-GAMELINKS <ko1@a...>
Date: Fri, 14 Oct 2022 18:31:36 +0900 (JST)
Subject: [ruby-changes:73982] ee8bcbf405 (master): Reuse ins_methods_type_i function

https://git.ruby-lang.org/ruby.git/commit/?id=ee8bcbf405

From ee8bcbf40578c0c4e60063a3e0c86439a6891131 Mon Sep 17 00:00:00 2001
From: S-H-GAMELINKS <gamelinks007@g...>
Date: Thu, 13 Oct 2022 00:09:17 +0900
Subject: Reuse ins_methods_type_i function

---
 class.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/class.c b/class.c
index 3a83a7f052..7a32951e60 100644
--- a/class.c
+++ b/class.c
@@ -1639,10 +1639,7 @@ ins_methods_pub_i(st_data_t name, st_data_t type, st_data_t ary) https://github.com/ruby/ruby/blob/trunk/class.c#L1639
 static int
 ins_methods_undef_i(st_data_t name, st_data_t type, st_data_t ary)
 {
-    if ((rb_method_visibility_t)type == METHOD_VISI_UNDEF) {
-        ins_methods_push(name, ary);
-    }
-    return ST_CONTINUE;
+    return ins_methods_type_i(name, type, ary, METHOD_VISI_UNDEF);
 }
 
 struct method_entry_arg {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]