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

ruby-changes:48692

From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 17:53:54 +0900 (JST)
Subject: [ruby-changes:48692] ko1:r60808 (trunk): make a func static.

ko1	2017-11-16 17:53:49 +0900 (Thu, 16 Nov 2017)

  New Revision: 60808

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

  Log:
    make a func static.
    
    * vm_method.c (rb_resolve_refined_method_callable): make it static.

  Modified files:
    trunk/method.h
    trunk/vm_method.c
Index: method.h
===================================================================
--- method.h	(revision 60807)
+++ method.h	(revision 60808)
@@ -194,7 +194,6 @@ const rb_method_entry_t *rb_resolve_refi https://github.com/ruby/ruby/blob/trunk/method.h#L194
 const rb_callable_method_entry_t *rb_callable_method_entry(VALUE klass, ID id);
 const rb_callable_method_entry_t *rb_callable_method_entry_with_refinements(VALUE klass, ID id, VALUE *defined_class);
 const rb_callable_method_entry_t *rb_callable_method_entry_without_refinements(VALUE klass, ID id, VALUE *defined_class);
-const rb_callable_method_entry_t *rb_resolve_refined_method_callable(VALUE refinements, const rb_callable_method_entry_t *me);
 
 int rb_method_entry_arity(const rb_method_entry_t *me);
 int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2);
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 60807)
+++ vm_method.c	(revision 60808)
@@ -936,7 +936,7 @@ rb_resolve_refined_method(VALUE refineme https://github.com/ruby/ruby/blob/trunk/vm_method.c#L936
     return resolve_refined_method(refinements, me, NULL);
 }
 
-const rb_callable_method_entry_t *
+static const rb_callable_method_entry_t *
 rb_resolve_refined_method_callable(VALUE refinements, const rb_callable_method_entry_t *me)
 {
     VALUE defined_class = me->defined_class;

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

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