summaryrefslogtreecommitdiff
path: root/ruby_2_2/ext/-test-/funcall
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/ext/-test-/funcall')
-rw-r--r--ruby_2_2/ext/-test-/funcall/extconf.rb2
-rw-r--r--ruby_2_2/ext/-test-/funcall/passing_block.c30
2 files changed, 0 insertions, 32 deletions
diff --git a/ruby_2_2/ext/-test-/funcall/extconf.rb b/ruby_2_2/ext/-test-/funcall/extconf.rb
deleted file mode 100644
index 8a9179ab2f..0000000000
--- a/ruby_2_2/ext/-test-/funcall/extconf.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-require 'mkmf'
-create_makefile("-test-/funcall/funcall")
diff --git a/ruby_2_2/ext/-test-/funcall/passing_block.c b/ruby_2_2/ext/-test-/funcall/passing_block.c
deleted file mode 100644
index 0200f80369..0000000000
--- a/ruby_2_2/ext/-test-/funcall/passing_block.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "ruby.h"
-
-VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*);
-
-static VALUE
-with_funcall2(int argc, VALUE *argv, VALUE self)
-{
- return rb_funcall2(self, rb_intern("target"), argc, argv);
-}
-
-static VALUE
-with_funcall_passing_block(int argc, VALUE *argv, VALUE self)
-{
- return rb_funcall_passing_block(self, rb_intern("target"), argc, argv);
-}
-
-void
-Init_funcall(void)
-{
- VALUE cRelay = rb_path2class("TestFuncall::Relay");
-
- rb_define_singleton_method(cRelay,
- "with_funcall2",
- with_funcall2,
- -1);
- rb_define_singleton_method(cRelay,
- "with_funcall_passing_block",
- with_funcall_passing_block,
- -1);
-}