From 9da7dcc4771e371d0d1102371036594c1d7d4e09 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Dec 2014 11:02:10 +0000 Subject: [PATCH] compile.c: add comments * compile.c (rb_method_for_self_aref, rb_method_for_self_aset): add comments about inputs and outputs of func. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compile.c b/compile.c index c59402d81d..ac8fad9760 100644 --- a/compile.c +++ b/compile.c @@ -6309,12 +6309,18 @@ for_self_aset(rb_iseq_t *iseq, LINK_ANCHOR *ret, VALUE a) 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) {