summaryrefslogtreecommitdiff
path: root/ruby_2_2/ext/-test-/float
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/ext/-test-/float')
-rw-r--r--ruby_2_2/ext/-test-/float/depend3
-rw-r--r--ruby_2_2/ext/-test-/float/extconf.rb7
-rw-r--r--ruby_2_2/ext/-test-/float/init.c11
-rw-r--r--ruby_2_2/ext/-test-/float/nextafter.c36
4 files changed, 0 insertions, 57 deletions
diff --git a/ruby_2_2/ext/-test-/float/depend b/ruby_2_2/ext/-test-/float/depend
deleted file mode 100644
index dff14550f7..0000000000
--- a/ruby_2_2/ext/-test-/float/depend
+++ /dev/null
@@ -1,3 +0,0 @@
-$(OBJS): $(HDRS) $(ruby_headers)
-
-nextafter.o: nextafter.c $(top_srcdir)/missing/nextafter.c
diff --git a/ruby_2_2/ext/-test-/float/extconf.rb b/ruby_2_2/ext/-test-/float/extconf.rb
deleted file mode 100644
index 0a9a299aa5..0000000000
--- a/ruby_2_2/ext/-test-/float/extconf.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
-$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
-inits = $srcs.map {|s| File.basename(s, ".*")}
-inits.delete("init")
-inits.map! {|s|"X(#{s})"}
-$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
-create_makefile("-test-/float")
diff --git a/ruby_2_2/ext/-test-/float/init.c b/ruby_2_2/ext/-test-/float/init.c
deleted file mode 100644
index d962108e39..0000000000
--- a/ruby_2_2/ext/-test-/float/init.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "ruby.h"
-
-#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}
-
-void
-Init_float(void)
-{
- VALUE mBug = rb_define_module("Bug");
- VALUE klass = rb_define_class_under(mBug, "Float", rb_cObject);
- TEST_INIT_FUNCS(init);
-}
diff --git a/ruby_2_2/ext/-test-/float/nextafter.c b/ruby_2_2/ext/-test-/float/nextafter.c
deleted file mode 100644
index 30fb71f520..0000000000
--- a/ruby_2_2/ext/-test-/float/nextafter.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "ruby.h"
-
-static VALUE
-system_nextafter_m(VALUE klass, VALUE vx, VALUE vy)
-{
- double x, y, z;
-
- x = NUM2DBL(vx);
- y = NUM2DBL(vy);
- z = nextafter(x, y);
-
- return DBL2NUM(z);
-}
-
-#define nextafter missing_nextafter
-#include "../../../missing/nextafter.c"
-#undef nextafter
-
-static VALUE
-missing_nextafter_m(VALUE klass, VALUE vx, VALUE vy)
-{
- double x, y, z;
-
- x = NUM2DBL(vx);
- y = NUM2DBL(vy);
- z = missing_nextafter(x, y);
-
- return DBL2NUM(z);
-}
-
-void
-Init_nextafter(VALUE klass)
-{
- rb_define_singleton_method(klass, "system_nextafter", system_nextafter_m, 2);
- rb_define_singleton_method(klass, "missing_nextafter", missing_nextafter_m, 2);
-}