summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 07:59:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 07:59:14 +0000
commit7566c49068869c222385ffb26bf91b666b3390b1 (patch)
treeabb203e4d6cf86b42d8e7b9d260abf2daef57e00 /range.c
parentf0e73fc9862c8d2c57a89349fb79012b826b8245 (diff)
ruby/ruby.h: RB_BLOCK_CALL_FUNC_ARGLIST
* include/ruby/ruby.h (RB_BLOCK_CALL_FUNC_ARGLIST): for declaration argument list of rb_block_call_func. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/range.c b/range.c
index c666b88..ab89b82 100644
--- a/range.c
+++ b/range.c
@@ -302,7 +302,7 @@ range_each_func(VALUE range, rb_block_call_func *func, VALUE arg)
}
static VALUE
-sym_step_i(VALUE i, VALUE arg, int argc, VALUE *argv, VALUE blockarg)
+sym_step_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg))
{
VALUE *iter = (VALUE *)arg;
@@ -320,7 +320,7 @@ sym_step_i(VALUE i, VALUE arg, int argc, VALUE *argv, VALUE blockarg)
}
static VALUE
-step_i(VALUE i, VALUE arg, int argc, VALUE *argv, VALUE blockarg)
+step_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg))
{
VALUE *iter = (VALUE *)arg;
@@ -702,14 +702,14 @@ range_bsearch(VALUE range)
}
static VALUE
-each_i(VALUE v, VALUE arg, int argc, VALUE *argv, VALUE blockarg)
+each_i(RB_BLOCK_CALL_FUNC_ARGLIST(v, arg))
{
rb_yield(v);
return Qnil;
}
static VALUE
-sym_each_i(VALUE v, VALUE arg, int argc, VALUE *argv, VALUE blockarg)
+sym_each_i(RB_BLOCK_CALL_FUNC_ARGLIST(v, arg))
{
rb_yield(rb_str_intern(v));
return Qnil;
@@ -844,7 +844,7 @@ range_end(VALUE range)
static VALUE
-first_i(VALUE i, VALUE cbarg, int argc, VALUE *argv, VALUE blockarg)
+first_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, cbarg))
{
VALUE *ary = (VALUE *)cbarg;
long n = NUM2LONG(ary[0]);