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

ruby-changes:4392

From: ko1@a...
Date: Tue, 1 Apr 2008 21:22:02 +0900 (JST)
Subject: [ruby-changes:4392] matz - Ruby:r15883 (trunk): * rational.c: need to include <float.h> just once.

matz	2008-04-01 21:21:33 +0900 (Tue, 01 Apr 2008)

  New Revision: 15883

  Modified files:
    trunk/ChangeLog
    trunk/rational.c

  Log:
    * rational.c: need to include <float.h> just once.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15883&r2=15882&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/rational.c?r1=15883&r2=15882&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15882)
+++ ChangeLog	(revision 15883)
@@ -1,3 +1,7 @@
+Tue Apr  1 21:19:41 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* rational.c: need to include <float.h> just once.
+
 Tue Apr  1 16:40:21 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* bignum.c (big2dbl): more precise conversion at edge cases.
Index: rational.c
===================================================================
--- rational.c	(revision 15882)
+++ rational.c	(revision 15883)
@@ -7,6 +7,7 @@
 
 #include "ruby.h"
 #include <math.h>
+#include <float.h>
 
 #define NDEBUG
 #include <assert.h>
@@ -1110,8 +1111,6 @@
     return q + r;
 }
 
-#include <float.h>
-
 static VALUE
 nurat_to_f(VALUE self)
 {
@@ -1298,8 +1297,6 @@
     return rb_rational_new1(self);
 }
 
-#include <float.h>
-
 static VALUE
 float_decode(VALUE self)
 {

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

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