* include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from

defines.h to missing.h.  (couldn't use RUBY_EXTERN there.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-06-06 06:11:37 +00:00
Родитель f4e499de6c
Коммит 5574d874fb
3 изменённых файлов: 23 добавлений и 18 удалений

Просмотреть файл

@ -1,9 +1,14 @@
Mon Jun 6 15:10:17 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* 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@ruby-lang.org>
* test/rdoc/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#
{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.)
Mon Jun 6 14:11:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>

Просмотреть файл

@ -133,22 +133,6 @@ void xfree(void*);
#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

Просмотреть файл

@ -119,6 +119,22 @@ RUBY_EXTERN double lgamma_r(double, int *);
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)