[前][次][番号順一覧][スレッド一覧]

ruby-changes:36626

From: nobu <ko1@a...>
Date: Thu, 4 Dec 2014 08:25:04 +0900 (JST)
Subject: [ruby-changes:36626] nobu:r48707 (trunk): iseq_load.c: rb_path2class

nobu	2014-12-04 08:24:57 +0900 (Thu, 04 Dec 2014)

  New Revision: 48707

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48707

  Log:
    iseq_load.c: rb_path2class
    
    * ext/-test-/iseq_load/iseq_load.c (Init_iseq_load): use
      rb_path2class.

  Modified files:
    trunk/ext/-test-/iseq_load/iseq_load.c
Index: ext/-test-/iseq_load/iseq_load.c
===================================================================
--- ext/-test-/iseq_load/iseq_load.c	(revision 48706)
+++ ext/-test-/iseq_load/iseq_load.c	(revision 48707)
@@ -15,7 +15,7 @@ iseq_load(int argc, VALUE *argv, VALUE s https://github.com/ruby/ruby/blob/trunk/ext/-test-/iseq_load/iseq_load.c#L15
 void
 Init_iseq_load(void)
 {
-    VALUE rb_cISeq = rb_eval_string("RubyVM::InstructionSequence");
+    VALUE rb_cISeq = rb_path2class("RubyVM::InstructionSequence");
 
     rb_define_singleton_method(rb_cISeq, "iseq_load", iseq_load, -1);
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]