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

ruby-changes:39979

From: ko1 <ko1@a...>
Date: Tue, 6 Oct 2015 19:24:43 +0900 (JST)
Subject: [ruby-changes:39979] ko1:r52060 (trunk): * proc.c (Init_Proc): Proc#call and others should be public.

ko1	2015-10-06 19:24:34 +0900 (Tue, 06 Oct 2015)

  New Revision: 52060

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

  Log:
    * proc.c (Init_Proc): Proc#call and others should be public.

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52059)
+++ ChangeLog	(revision 52060)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct  6 19:23:58 2015  Koichi Sasada  <ko1@a...>
+
+	* proc.c (Init_Proc): Proc#call and others should be public.
+
 Tue Oct  6 18:51:51 2015  Koichi Sasada  <ko1@a...>
 
 	* method.h: IMEMO_FL_USER3 and IMEMO_FL_USER4 is not needed any more.
Index: proc.c
===================================================================
--- proc.c	(revision 52059)
+++ proc.c	(revision 52060)
@@ -2805,13 +2805,13 @@ Init_Proc(void) https://github.com/ruby/ruby/blob/trunk/proc.c#L2805
     rb_define_singleton_method(rb_cProc, "new", rb_proc_s_new, -1);
 
     rb_add_method(rb_cProc, rb_intern("call"), VM_METHOD_TYPE_OPTIMIZED,
-		  (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+		  (void *)OPTIMIZED_METHOD_TYPE_CALL, METHOD_VISI_PUBLIC);
     rb_add_method(rb_cProc, rb_intern("[]"), VM_METHOD_TYPE_OPTIMIZED,
-		  (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+		  (void *)OPTIMIZED_METHOD_TYPE_CALL, METHOD_VISI_PUBLIC);
     rb_add_method(rb_cProc, rb_intern("==="), VM_METHOD_TYPE_OPTIMIZED,
-		  (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+		  (void *)OPTIMIZED_METHOD_TYPE_CALL, METHOD_VISI_PUBLIC);
     rb_add_method(rb_cProc, rb_intern("yield"), VM_METHOD_TYPE_OPTIMIZED,
-		  (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+		  (void *)OPTIMIZED_METHOD_TYPE_CALL, METHOD_VISI_PUBLIC);
 
     rb_define_method(rb_cProc, "to_proc", proc_to_proc, 0);
     rb_define_method(rb_cProc, "arity", proc_arity, 0);

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

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