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

ruby-changes:8394

From: matz <ko1@a...>
Date: Sat, 25 Oct 2008 01:30:28 +0900 (JST)
Subject: [ruby-changes:8394] Ruby:r19925 (trunk): * ext/mathn/rational/rational.c: undef duplicated macro definition

matz	2008-10-25 01:30:09 +0900 (Sat, 25 Oct 2008)

  New Revision: 19925

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

  Log:
    * ext/mathn/rational/rational.c: undef duplicated macro definition
      first to shut up the warning.
    * ext/mathn/rational/rational.c (rb_rational_new_mathn): specify
      omitted return value.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19924)
+++ ChangeLog	(revision 19925)
@@ -1,3 +1,11 @@
+Sat Oct 25 01:29:34 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* ext/mathn/rational/rational.c: undef duplicated macro definition
+	  first to shut up the warning.
+
+	* ext/mathn/rational/rational.c (rb_rational_new_mathn): specify
+	  omitted return value.
+
 Sat Oct 25 00:14:41 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* array.c (rb_ary_sample): fixed sizes and randomness.
Index: ext/mathn/rational/rational.c
===================================================================
--- ext/mathn/rational/rational.c	(revision 19924)
+++ ext/mathn/rational/rational.c	(revision 19925)
@@ -1191,10 +1191,12 @@
 
 #ifdef EXT_MATHN
 
+#undef rb_rational_new1
+#undef rb_rational_new2
 #define rb_rational_new1(x) rb_rational_new_mathn(x, INT2FIX(1))
 #define rb_rational_new2(x,y) rb_rational_new_mathn(x, y)
 
-static
+static VALUE
 rb_rational_new_mathn(VALUE x, VALUE y)
 {
     return nurat_s_canonicalize_internal(rb_cRational, x, y);

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

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