diff options
| author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 11:47:59 +0000 |
|---|---|---|
| committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 11:47:59 +0000 |
| commit | d3e7179247fc3ab30526773aef2107a6fbca68e4 (patch) | |
| tree | f380a5726d88fd1a4005c133949a1e17c7f834a5 /ext/mathn | |
| parent | bb5cba31425dbec0080189ac3dd80e8641fdd9dd (diff) | |
| download | ruby-d3e7179247fc3ab30526773aef2107a6fbca68e4.tar.gz ruby-d3e7179247fc3ab30526773aef2107a6fbca68e4.tar.xz ruby-d3e7179247fc3ab30526773aef2107a6fbca68e4.zip | |
* ext/mathn/rational.c: change several global functions to static
function.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/mathn')
| -rw-r--r-- | ext/mathn/rational/rational.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/mathn/rational/rational.c b/ext/mathn/rational/rational.c index ebbaa9b9e..b30738048 100644 --- a/ext/mathn/rational/rational.c +++ b/ext/mathn/rational/rational.c @@ -1151,6 +1151,9 @@ nurat_marshal_load(VALUE self, VALUE a) /* --- */ +#ifndef EXT_MATHN +static +#endif VALUE rb_gcd(VALUE self, VALUE other) { @@ -1158,6 +1161,9 @@ rb_gcd(VALUE self, VALUE other) return f_gcd(self, other); } +#ifndef EXT_MATHN +static +#endif VALUE rb_lcm(VALUE self, VALUE other) { @@ -1165,6 +1171,9 @@ rb_lcm(VALUE self, VALUE other) return f_lcm(self, other); } +#ifndef EXT_MATHN +static +#endif VALUE 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)); } +#ifndef EXT_MATHN +static +#endif VALUE rb_rational_raw(VALUE x, VALUE y) { return nurat_s_new_internal(rb_cRational, x, y); } +#ifndef EXT_MATHN +static +#endif VALUE 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); +#ifndef EXT_MATHN +static +#endif VALUE rb_Rational(VALUE x, VALUE y) { |
