summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-08 10:27:01 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-08 10:27:01 +0000
commit2fbf66a7e1fd2296c8e9bcb14ac223ea631bd55e (patch)
tree1ae9031ff715e1e369ce977a22dc8621eacf303f
parent0bfa4abd1bb6e57d854a0f4436354d5d00203313 (diff)
Fix invalid test extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/-test-/path_to_class/path_to_class.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/-test-/path_to_class/path_to_class.c b/ext/-test-/path_to_class/path_to_class.c
index 9b88b48d40..c8c2831b09 100644
--- a/ext/-test-/path_to_class/path_to_class.c
+++ b/ext/-test-/path_to_class/path_to_class.c
@@ -1,9 +1,15 @@
#include "ruby.h"
+static VALUE
+path_to_class(VALUE klass, VALUE path)
+{
+ return rb_path_to_class(path);
+}
+
void
Init_path_to_class(void)
{
VALUE klass = rb_path2class("Test_PathToClass");
- rb_define_singleton_method(klass, "path_to_class", rb_path_to_class, 1);
+ rb_define_singleton_method(klass, "path_to_class", path_to_class, 1);
}