summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
-rw-r--r--rational.c23
1 files changed, 15 insertions, 8 deletions
@@ -5,23 +5,32 @@
which is written in ruby.
*/
-#include "internal.h"
-#include "id.h"
-#include <math.h>
#include <float.h>
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
-#define NDEBUG
-#include "ruby_assert.h"
-
#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
#define USE_GMP
#include <gmp.h>
#endif
#define ZERO INT2FIX(0)
#define ONE INT2FIX(1)
#define TWO INT2FIX(2)
@@ -2299,8 +2308,6 @@ float_rationalize(int argc, VALUE *argv, VALUE self)
}
}
-#include <ctype.h>
-
inline static int
issign(int c)
{