ruby-changes:21933
From: naruse <ko1@a...>
Date: Thu, 8 Dec 2011 19:27:12 +0900 (JST)
Subject: [ruby-changes:21933] naruse:r33982 (trunk): Fix invalid test extension.
naruse 2011-12-08 19:27:01 +0900 (Thu, 08 Dec 2011) New Revision: 33982 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33982 Log: Fix invalid test extension. Modified files: trunk/ext/-test-/path_to_class/path_to_class.c Index: ext/-test-/path_to_class/path_to_class.c =================================================================== --- ext/-test-/path_to_class/path_to_class.c (revision 33981) +++ ext/-test-/path_to_class/path_to_class.c (revision 33982) @@ -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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/