ruby-changes:43062
From: nobu <ko1@a...>
Date: Mon, 23 May 2016 21:33:44 +0900 (JST)
Subject: [ruby-changes:43062] nobu:r55136 (trunk): missing.h: isfinite
nobu 2016-05-23 21:33:39 +0900 (Mon, 23 May 2016) New Revision: 55136 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55136 Log: missing.h: isfinite * include/ruby/missing.h (isfinite): move from numeric.c. Modified files: trunk/ChangeLog trunk/ext/bigdecimal/bigdecimal.c trunk/include/ruby/missing.h trunk/numeric.c Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 55135) +++ ext/bigdecimal/bigdecimal.c (revision 55136) @@ -30,10 +30,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L30 #include <ieeefp.h> #endif -#if !defined(HAVE_ISFINITE) && defined(HAVE_FINITE) && !defined(isfinite) -# define isfinite(x) finite(x) -#endif - /* #define ENABLE_NUMERIC_STRING */ #define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max) ( \ Index: ChangeLog =================================================================== --- ChangeLog (revision 55135) +++ ChangeLog (revision 55136) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon May 23 21:33:36 2016 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/missing.h (isfinite): move from numeric.c. + Mon May 23 21:09:06 2016 Kazuki Yamaguchi <k@r...> * ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global Index: numeric.c =================================================================== --- numeric.c (revision 55135) +++ numeric.c (revision 55136) @@ -24,14 +24,6 @@ https://github.com/ruby/ruby/blob/trunk/numeric.c#L24 #include <ieeefp.h> #endif -#if !defined HAVE_ISFINITE && !defined isfinite -#if defined HAVE_FINITE && !defined finite && !defined _WIN32 -extern int finite(double); -# define HAVE_ISFINITE 1 -# define isfinite(x) finite(x) -#endif -#endif - /* use IEEE 64bit values if not defined */ #ifndef FLT_RADIX #define FLT_RADIX 2 Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 55135) +++ include/ruby/missing.h (revision 55136) @@ -174,6 +174,13 @@ RUBY_EXTERN int isnan(double); https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L174 # endif #endif +#ifndef isfinite +# ifndef HAVE_ISFINITE +# define HAVE_ISFINITE 1 +# define isfinite(x) finite(x) +# endif +#endif + #ifndef HAVE_NEXTAFTER RUBY_EXTERN double nextafter(double x, double y); #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/