diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-23 12:07:23 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-23 12:07:23 +0000 |
commit | e8b0f17319d78b7435d84d7875d923117eebc37e (patch) | |
tree | e784769fdb709d56709599b9597070d065ef5eed /numeric.c | |
parent | 548027ef61c706a1459ab38c43482e1e333844a4 (diff) |
* 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
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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; |