* sprintf.c: include ieeefp.h to refer isinf.
* ext/bigdecimal/bigdecimal.c: ditto. * ext/json/ext/generator/generator.c: ditto. * rational.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ac6fd9384d
commit
104e841390
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
Thu Jul 3 01:23:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* sprintf.c: include ieeefp.h to refer isinf.
|
||||||
|
|
||||||
|
* ext/bigdecimal/bigdecimal.c: ditto.
|
||||||
|
|
||||||
|
* ext/json/ext/generator/generator.c: ditto.
|
||||||
|
|
||||||
|
* rational.c: ditto.
|
||||||
|
|
||||||
Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* missing/tgamma.c (tgamma): remove unused variable.
|
* missing/tgamma.c (tgamma): remove unused variable.
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_IEEEFP_H
|
||||||
|
#include <ieeefp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* #define ENABLE_NUMERIC_STRING */
|
/* #define ENABLE_NUMERIC_STRING */
|
||||||
|
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_IEEEFP_H
|
||||||
|
#include <ieeefp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define check_max_nesting(state, depth) do { \
|
#define check_max_nesting(state, depth) do { \
|
||||||
long current_nesting = 1 + depth; \
|
long current_nesting = 1 + depth; \
|
||||||
if (state->max_nesting != 0 && current_nesting > state->max_nesting) \
|
if (state->max_nesting != 0 && current_nesting > state->max_nesting) \
|
||||||
|
@ -12,6 +12,10 @@
|
|||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_IEEEFP_H
|
||||||
|
#include <ieeefp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef RATIONAL_NAME
|
#ifndef RATIONAL_NAME
|
||||||
#define RATIONAL_NAME "Rational"
|
#define RATIONAL_NAME "Rational"
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_IEEEFP_H
|
||||||
|
#include <ieeefp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
|
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
|
||||||
#define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT)
|
#define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT)
|
||||||
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
|
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user