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

ruby-changes:13005

From: nobu <ko1@a...>
Date: Fri, 4 Sep 2009 20:43:15 +0900 (JST)
Subject: [ruby-changes:13005] Ruby:r24750 (trunk, ruby_1_8): * numeric.c (round): added declaration.

nobu	2009-09-04 20:40:58 +0900 (Fri, 04 Sep 2009)

  New Revision: 24750

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

  Log:
    * numeric.c (round): added declaration.  [ruby-dev:39222]

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/numeric.c
    trunk/ChangeLog
    trunk/numeric.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24749)
+++ ChangeLog	(revision 24750)
@@ -1,3 +1,7 @@
+Fri Sep  4 20:40:57 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* numeric.c (round): added declaration.  [ruby-dev:39222]
+
 Fri Sep  4 06:15:39 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* dir.c (Init_Dir): alias Dir#path to Dir#to_path.  [ruby-core:25326]
Index: numeric.c
===================================================================
--- numeric.c	(revision 24749)
+++ numeric.c	(revision 24750)
@@ -63,6 +63,8 @@
 #define DBL_EPSILON 2.2204460492503131e-16
 #endif
 
+extern double round(double);
+
 #ifndef HAVE_ROUND
 double
 round(double x)
@@ -79,9 +81,6 @@
     }
     return x;
 }
-#elif defined(__BEOS__)
-/* appears to be a bug in the BeOS headers */
-double round(double x);
 #endif
 
 static ID id_coerce, id_to_i, id_eq;
Index: ruby_1_8/numeric.c
===================================================================
--- ruby_1_8/numeric.c	(revision 24749)
+++ ruby_1_8/numeric.c	(revision 24750)
@@ -63,6 +63,8 @@
 #define DBL_EPSILON 2.2204460492503131e-16
 #endif
 
+extern double round _((double));
+
 #ifndef HAVE_ROUND
 double
 round(x)
@@ -80,9 +82,6 @@
     }
     return x;
 }
-#elif defined(__BEOS__)
-      /* appears to be a bug in the BeOS headers */
-      double round(double x);
 #endif
 
 static ID id_coerce, id_to_i, id_eq;
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 24749)
+++ ruby_1_8/ChangeLog	(revision 24750)
@@ -1,3 +1,7 @@
+Fri Sep  4 20:40:57 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* numeric.c (round): added declaration.  [ruby-dev:39222]
+
 Fri Sep  4 09:52:58 2009  URABE Shyouhei  <shyouhei@r...>
 
 	* NEWS: forgot to mention about new looser splats.

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

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