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

ruby-changes:51151

From: shyouhei <ko1@a...>
Date: Tue, 8 May 2018 18:09:18 +0900 (JST)
Subject: [ruby-changes:51151] shyouhei:r63358 (trunk): rb_ary_dig, rb_hash_dig: nobody is using them outside.

shyouhei	2018-05-08 18:09:12 +0900 (Tue, 08 May 2018)

  New Revision: 63358

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63358

  Log:
    rb_ary_dig, rb_hash_dig: nobody is using them outside.
    
    mark them static.

  Modified files:
    trunk/array.c
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 63357)
+++ hash.c	(revision 63358)
@@ -3065,7 +3065,7 @@ rb_hash_any_p(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/hash.c#L3065
  *   g.dig(:foo, :bar)           #=> TypeError: no implicit conversion of Symbol into Integer
  */
 
-VALUE
+static VALUE
 rb_hash_dig(int argc, VALUE *argv, VALUE self)
 {
     rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
Index: array.c
===================================================================
--- array.c	(revision 63357)
+++ array.c	(revision 63358)
@@ -5828,7 +5828,7 @@ rb_ary_any_p(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/array.c#L5828
  *   [42, {foo: :bar}].dig(1, :foo)    #=> :bar
  */
 
-VALUE
+static VALUE
 rb_ary_dig(int argc, VALUE *argv, VALUE self)
 {
     rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);

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

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