[前][次][番号順一覧][スレッド一覧]

ruby-changes:8385

From: keiju <ko1@a...>
Date: Fri, 24 Oct 2008 20:48:14 +0900 (JST)
Subject: [ruby-changes:8385] Ruby:r19916 (trunk): * ext/mathn/rational.c: change several global functions to static

keiju	2008-10-24 20:47:59 +0900 (Fri, 24 Oct 2008)

  New Revision: 19916

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19916

  Log:
     * ext/mathn/rational.c: change several global functions to static
       function.

  Modified files:
    trunk/ChangeLog
    trunk/ext/mathn/rational/rational.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19915)
+++ ChangeLog	(revision 19916)
@@ -1,3 +1,8 @@
+Fri Oct 24 20:45:41 2008  Keiju Ishitsuka  <keiju@r...>
+
+	* ext/mathn/rational.c: change several global functions to static
+	  function.
+
 Fri Oct 24 19:57:19 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* string.c (rb_str_dump): should have removed commented out
Index: ext/mathn/rational/rational.c
===================================================================
--- ext/mathn/rational/rational.c	(revision 19915)
+++ ext/mathn/rational/rational.c	(revision 19916)
@@ -1151,6 +1151,9 @@
 
 /* --- */
 
+#ifndef EXT_MATHN
+static
+#endif
 VALUE
 rb_gcd(VALUE self, VALUE other)
 {
@@ -1158,6 +1161,9 @@
     return f_gcd(self, other);
 }
 
+#ifndef EXT_MATHN
+static
+#endif
 VALUE
 rb_lcm(VALUE self, VALUE other)
 {
@@ -1165,6 +1171,9 @@
     return f_lcm(self, other);
 }
 
+#ifndef EXT_MATHN
+static
+#endif
 VALUE
 rb_gcdlcm(VALUE self, VALUE other)
 {
@@ -1172,12 +1181,18 @@
     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 @@
 
 static VALUE nurat_s_convert(int argc, VALUE *argv, VALUE klass);
 
+#ifndef EXT_MATHN
+static
+#endif
 VALUE
 rb_Rational(VALUE x, VALUE y)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]