summaryrefslogtreecommitdiff
path: root/ext/-test-/dir/init.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-29 22:28:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-29 22:28:47 +0000
commit83ead3c4a7dc2670bad06745eaccbdd0a9397f46 (patch)
treeec13c5f7f36b09fb6222ae2ecc9e843b3032e2d0 /ext/-test-/dir/init.c
parentfae18c95be272b2ddb504aa5d26912ccfce84ef6 (diff)
* ext/-test-/dir: Dir#fileno implemented.
* test/lib/minitest/unit.rb (find_fds): Don't return the fd used to scan /proc/$$/fd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/dir/init.c')
-rw-r--r--ext/-test-/dir/init.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/-test-/dir/init.c b/ext/-test-/dir/init.c
new file mode 100644
index 0000000000..2ca1508468
--- /dev/null
+++ b/ext/-test-/dir/init.c
@@ -0,0 +1,11 @@
+#include "ruby.h"
+
+#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}
+
+void
+Init_dir(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ VALUE klass = rb_define_class_under(mBug, "Dir", rb_cObject);
+ TEST_INIT_FUNCS(init);
+}