summaryrefslogtreecommitdiff
path: root/ext/-test-/notimplement
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-17 14:47:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-17 14:47:36 +0000
commit47349e870111b8ae88bd1331559a022be88d80ec (patch)
tree1021475151de03cabe42fa6fc11c3bb8782a86d0 /ext/-test-/notimplement
parent29a914ff2ee0fcf4b1a664355c99e4a16e766c9f (diff)
notimplement: rename
* ext/-test-/notimplement, test/-ext-/test_notimplement.rb: rename from bug-3662. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/notimplement')
-rw-r--r--ext/-test-/notimplement/bug.c16
-rw-r--r--ext/-test-/notimplement/extconf.rb1
2 files changed, 17 insertions, 0 deletions
diff --git a/ext/-test-/notimplement/bug.c b/ext/-test-/notimplement/bug.c
new file mode 100644
index 0000000000..34731bc2e6
--- /dev/null
+++ b/ext/-test-/notimplement/bug.c
@@ -0,0 +1,16 @@
+#include <ruby.h>
+
+static VALUE
+bug_funcall(int argc, VALUE *argv, VALUE self)
+{
+ if (argc < 1) rb_raise(rb_eArgError, "not enough argument");
+ return rb_funcall2(self, rb_to_id(*argv), argc-1, argv+1);
+}
+
+void
+Init_notimplement(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ rb_define_module_function(mBug, "funcall", bug_funcall, -1);
+ rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
+}
diff --git a/ext/-test-/notimplement/extconf.rb b/ext/-test-/notimplement/extconf.rb
new file mode 100644
index 0000000000..a2feb77a94
--- /dev/null
+++ b/ext/-test-/notimplement/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/notimplement")