mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/mathn/rational.c: change several global functions to static
function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
23ed2fcc31
commit
7e8ab850b0
2 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Oct 24 20:45:41 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/mathn/rational.c: change several global functions to static
|
||||||
|
function.
|
||||||
|
|
||||||
Fri Oct 24 19:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Oct 24 19:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_str_dump): should have removed commented out
|
* string.c (rb_str_dump): should have removed commented out
|
||||||
|
|
|
@ -1151,6 +1151,9 @@ nurat_marshal_load(VALUE self, VALUE a)
|
||||||
|
|
||||||
/* --- */
|
/* --- */
|
||||||
|
|
||||||
|
#ifndef EXT_MATHN
|
||||||
|
static
|
||||||
|
#endif
|
||||||
VALUE
|
VALUE
|
||||||
rb_gcd(VALUE self, VALUE other)
|
rb_gcd(VALUE self, VALUE other)
|
||||||
{
|
{
|
||||||
|
@ -1158,6 +1161,9 @@ rb_gcd(VALUE self, VALUE other)
|
||||||
return f_gcd(self, other);
|
return f_gcd(self, other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef EXT_MATHN
|
||||||
|
static
|
||||||
|
#endif
|
||||||
VALUE
|
VALUE
|
||||||
rb_lcm(VALUE self, VALUE other)
|
rb_lcm(VALUE self, VALUE other)
|
||||||
{
|
{
|
||||||
|
@ -1165,6 +1171,9 @@ rb_lcm(VALUE self, VALUE other)
|
||||||
return f_lcm(self, other);
|
return f_lcm(self, other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef EXT_MATHN
|
||||||
|
static
|
||||||
|
#endif
|
||||||
VALUE
|
VALUE
|
||||||
rb_gcdlcm(VALUE self, VALUE other)
|
rb_gcdlcm(VALUE self, VALUE other)
|
||||||
{
|
{
|
||||||
|
@ -1172,12 +1181,18 @@ rb_gcdlcm(VALUE self, VALUE other)
|
||||||
return rb_assoc_new(f_gcd(self, other), f_lcm(self, other));
|
return rb_assoc_new(f_gcd(self, other), f_lcm(self, other));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef EXT_MATHN
|
||||||
|
static
|
||||||
|
#endif
|
||||||
VALUE
|
VALUE
|
||||||
rb_rational_raw(VALUE x, VALUE y)
|
rb_rational_raw(VALUE x, VALUE y)
|
||||||
{
|
{
|
||||||
return nurat_s_new_internal(rb_cRational, x, y);
|
return nurat_s_new_internal(rb_cRational, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef EXT_MATHN
|
||||||
|
static
|
||||||
|
#endif
|
||||||
VALUE
|
VALUE
|
||||||
rb_rational_new(VALUE x, VALUE y)
|
rb_rational_new(VALUE x, VALUE y)
|
||||||
{
|
{
|
||||||
|
@ -1186,6 +1201,9 @@ rb_rational_new(VALUE x, VALUE y)
|
||||||
|
|
||||||
static VALUE nurat_s_convert(int argc, VALUE *argv, VALUE klass);
|
static VALUE nurat_s_convert(int argc, VALUE *argv, VALUE klass);
|
||||||
|
|
||||||
|
#ifndef EXT_MATHN
|
||||||
|
static
|
||||||
|
#endif
|
||||||
VALUE
|
VALUE
|
||||||
rb_Rational(VALUE x, VALUE y)
|
rb_Rational(VALUE x, VALUE y)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue