ruby-changes:36812
From: nobu <ko1@a...>
Date: Fri, 19 Dec 2014 20:02:14 +0900 (JST)
Subject: [ruby-changes:36812] nobu:r48893 (trunk): compile.c: add comments
nobu 2014-12-19 20:02:10 +0900 (Fri, 19 Dec 2014) New Revision: 48893 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48893 Log: compile.c: add comments * compile.c (rb_method_for_self_aref, rb_method_for_self_aset): add comments about inputs and outputs of func. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 48892) +++ compile.c (revision 48893) @@ -6309,12 +6309,18 @@ for_self_aset(rb_iseq_t *iseq, LINK_ANCH https://github.com/ruby/ruby/blob/trunk/compile.c#L6309 return Qnil; } +/* + * func (index) -> (value) + */ VALUE rb_method_for_self_aref(VALUE name, VALUE arg, rb_insn_func_t func) { return method_for_self(name, arg, func, for_self_aref); } +/* + * func (index, value) -> (index, value) + */ VALUE rb_method_for_self_aset(VALUE name, VALUE arg, rb_insn_func_t func) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/