From e8b0f17319d78b7435d84d7875d923117eebc37e Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 23 Mar 2009 12:07:23 +0000 Subject: * array.c (ary_resize_capa): Remove an unused function. * array.c, bignum.c, dir.c, enumerator.c, gc.c, io.c, numeric.c, object.c, re.c, string.c, struct.c: Mixing two styles is not a good thing. Stick with the K&R style in 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 508c076f34..00eceea3bf 100644 --- a/numeric.c +++ b/numeric.c @@ -281,7 +281,7 @@ num_quo(x, y) } -static VALUE num_floor(VALUE num); +static VALUE num_floor _((VALUE)); /* * call-seq: @@ -1816,7 +1816,8 @@ int_int_p(num) */ static VALUE -int_odd_p(VALUE num) +int_odd_p(num) + VALUE num; { if (rb_funcall(num, '%', 1, INT2FIX(2)) != INT2FIX(0)) { return Qtrue; @@ -1832,7 +1833,8 @@ int_odd_p(VALUE num) */ static VALUE -int_even_p(VALUE num) +int_even_p(num) + VALUE num; { if (rb_funcall(num, '%', 1, INT2FIX(2)) == INT2FIX(0)) { return Qtrue; @@ -1874,7 +1876,8 @@ int_succ(num) */ static VALUE -int_pred(VALUE num) +int_pred(num) + VALUE num; { if (FIXNUM_P(num)) { long i = FIX2LONG(num) - 1; @@ -2999,7 +3002,8 @@ fix_zero_p(num) */ static VALUE -fix_odd_p(VALUE num) +fix_odd_p(num) + VALUE num; { if (num & 2) { return Qtrue; @@ -3015,7 +3019,8 @@ fix_odd_p(VALUE num) */ static VALUE -fix_even_p(VALUE num) +fix_even_p(num) + VALUE num; { if (num & 2) { return Qfalse; -- cgit v1.2.3