From 7432df370ded89ba0bcac4f287e1620e41899182 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 6 Oct 2015 10:24:34 +0000 Subject: * proc.c (Init_Proc): Proc#call and others should be public. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ proc.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 85e11ed6b5..3f47994812 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 6 19:23:58 2015 Koichi Sasada + + * proc.c (Init_Proc): Proc#call and others should be public. + Tue Oct 6 18:51:51 2015 Koichi Sasada * method.h: IMEMO_FL_USER3 and IMEMO_FL_USER4 is not needed any more. diff --git a/proc.c b/proc.c index b84a4fc9d9..f210464ec3 100644 --- a/proc.c +++ b/proc.c @@ -2805,13 +2805,13 @@ Init_Proc(void) 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); -- cgit v1.2.3