summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-31 08:42:44 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-31 08:42:44 +0000
commit5b9afca5e435f37c7affce56e81e6bc20a5d8b3c (patch)
tree2c833c1b565733ed271fd9071f68150d40142923 /numeric.c
parent7126624b4effe49919e35224054cc48e86716f39 (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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/numeric.c b/numeric.c
index f9eb35c..d9278f0 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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);
}
}