From 5e2f227d219fe67c8c57aa32dafb61ac4591fb20 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Jun 2013 13:43:22 +0000 Subject: intern.h: define rb_enumerator_size_func * include/ruby/intern.h (rb_enumerator_size_func): define strict function declaration for rb_enumeratorize_with_size(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 5a15e5b82e..79f8537fdd 100644 --- a/numeric.c +++ b/numeric.c @@ -1829,7 +1829,7 @@ ruby_num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl) } static VALUE -num_step_size(VALUE from, VALUE args) +num_step_size(VALUE from, VALUE args, VALUE eobj) { VALUE to = RARRAY_AREF(args, 0); VALUE step = (RARRAY_LEN(args) > 1) ? RARRAY_AREF(args, 1) : INT2FIX(1); @@ -3473,7 +3473,7 @@ fix_size(VALUE fix) } static VALUE -int_upto_size(VALUE from, VALUE args) +int_upto_size(VALUE from, VALUE args, VALUE eobj) { return ruby_num_interval_step_size(from, RARRAY_AREF(args, 0), INT2FIX(1), FALSE); } @@ -3520,7 +3520,7 @@ int_upto(VALUE from, VALUE to) } static VALUE -int_downto_size(VALUE from, VALUE args) +int_downto_size(VALUE from, VALUE args, VALUE eobj) { return ruby_num_interval_step_size(from, RARRAY_AREF(args, 0), INT2FIX(-1), FALSE); } @@ -3568,7 +3568,7 @@ int_downto(VALUE from, VALUE to) } static VALUE -int_dotimes_size(VALUE num) +int_dotimes_size(VALUE num, VALUE args, VALUE eobj) { if (FIXNUM_P(num)) { if (NUM2LONG(num) <= 0) return INT2FIX(0); -- cgit v1.2.3