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

ruby-changes:19891

From: usa <ko1@a...>
Date: Mon, 6 Jun 2011 15:11:44 +0900 (JST)
Subject: [ruby-changes:19891] usa:r31938 (trunk): * include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from

usa	2011-06-06 15:11:37 +0900 (Mon, 06 Jun 2011)

  New Revision: 31938

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

  Log:
    * include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
      defines.h to missing.h.  (couldn't use RUBY_EXTERN there.)

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
    trunk/include/ruby/missing.h

Index: include/ruby/missing.h
===================================================================
--- include/ruby/missing.h	(revision 31937)
+++ include/ruby/missing.h	(revision 31938)
@@ -119,6 +119,22 @@
 RUBY_EXTERN double cbrt(double);
 #endif
 
+#ifdef INFINITY
+# define HAVE_INFINITY
+#else
+/** @internal */
+RUBY_EXTERN const unsigned char rb_infinity[];
+# define INFINITY (*(float *)rb_infinity)
+#endif
+
+#ifdef NAN
+# define HAVE_NAN
+#else
+/** @internal */
+RUBY_EXTERN const unsigned char rb_nan[];
+# define NAN (*(float *)rb_nan)
+#endif
+
 #ifndef isinf
 # ifndef HAVE_ISINF
 #  if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 31937)
+++ include/ruby/defines.h	(revision 31938)
@@ -133,22 +133,6 @@
 #define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x"
 #define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X"
 
-#ifdef INFINITY
-# define HAVE_INFINITY
-#else
-/** @internal */
-RUBY_EXTERN const unsigned char rb_infinity[];
-# define INFINITY (*(float *)rb_infinity)
-#endif
-
-#ifdef NAN
-# define HAVE_NAN
-#else
-/** @internal */
-RUBY_EXTERN const unsigned char rb_nan[];
-# define NAN (*(float *)rb_nan)
-#endif
-
 #ifdef __CYGWIN__
 #undef _WIN32
 #endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31937)
+++ ChangeLog	(revision 31938)
@@ -1,3 +1,8 @@
+Mon Jun  6 15:10:17 2011  NAKAMURA Usaku  <usa@r...>
+
+	* include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
+	  defines.h to missing.h.  (couldn't use RUBY_EXTERN there.)
+
 Mon Jun  6 14:35:48 2011  NAKAMURA Usaku  <usa@r...>
 
 	* test/rdoc/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#
@@ -2,4 +7,4 @@
 	  {test_include_file,test_include_file_encoding_incompatible}): no
-	  need to write such workaround.  don't hide the bug of ruby (and the
-	  bug is already fixed)
+	  need to write such workaround.  don't hide the bug of ruby. (and the
+	  bug is already fixed.)
 

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

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