diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-31 08:42:44 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-31 08:42:44 +0000 |
commit | 5b9afca5e435f37c7affce56e81e6bc20a5d8b3c (patch) | |
tree | 2c833c1b565733ed271fd9071f68150d40142923 /numeric.c | |
parent | 7126624b4effe49919e35224054cc48e86716f39 (diff) |
* numeric.c (rb_num_coerce_relop): export function.
* marshal.c (w_object): check has been dropped. "_dump must return
string." [ruby-dev:21024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -144,8 +144,8 @@ rb_num_coerce_cmp(x, y) return Qnil; } -static VALUE -num_coerce_relop(x, y) +VALUE +rb_num_coerce_relop(x, y) VALUE x, y; { VALUE c, x0 = x, y0 = y; @@ -620,7 +620,7 @@ flo_gt(x, y) break; default: - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } if (isnan(a) || isnan(b)) return Qfalse; return (a > b)?Qtrue:Qfalse; @@ -647,7 +647,7 @@ flo_ge(x, y) break; default: - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } if (isnan(a) || isnan(b)) return Qfalse; return (a >= b)?Qtrue:Qfalse; @@ -674,7 +674,7 @@ flo_lt(x, y) break; default: - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } if (isnan(a) || isnan(b)) return Qfalse; return (a < b)?Qtrue:Qfalse; @@ -701,7 +701,7 @@ flo_le(x, y) break; default: - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } if (isnan(a) || isnan(b)) return Qfalse; return (a <= b)?Qtrue:Qfalse; @@ -1501,7 +1501,7 @@ fix_gt(x, y) return Qfalse; } else { - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } } @@ -1516,7 +1516,7 @@ fix_ge(x, y) return Qfalse; } else { - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } } @@ -1531,7 +1531,7 @@ fix_lt(x, y) return Qfalse; } else { - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } } @@ -1546,7 +1546,7 @@ fix_le(x, y) return Qfalse; } else { - return num_coerce_relop(x, y); + return rb_num_coerce_relop(x, y); } } |