mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2d855b08d0
commit
7432df370d
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Oct 6 19:23:58 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* proc.c (Init_Proc): Proc#call and others should be public.
|
||||
|
||||
Tue Oct 6 18:51:51 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* method.h: IMEMO_FL_USER3 and IMEMO_FL_USER4 is not needed any more.
|
||||
|
|
8
proc.c
8
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue