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

ruby-changes:13042

From: nobu <ko1@a...>
Date: Tue, 8 Sep 2009 18:11:12 +0900 (JST)
Subject: [ruby-changes:13042] Ruby:r24788 (trunk): * tool/compile_prelude.rb: evaluates in the main context.

nobu	2009-09-08 18:10:49 +0900 (Tue, 08 Sep 2009)

  New Revision: 24788

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

  Log:
    * tool/compile_prelude.rb: evaluates in the main context.
      [ruby-core:25474]

  Modified files:
    trunk/ChangeLog
    trunk/tool/compile_prelude.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24787)
+++ ChangeLog	(revision 24788)
@@ -1,3 +1,8 @@
+Tue Sep  8 18:10:47 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/compile_prelude.rb: evaluates in the main context.
+	  [ruby-core:25474]
+
 Tue Sep  8 11:53:58 2009  Koichi Sasada  <ko1@a...>
 
 	* iseq.c (iseq_mark): no need to mark inline cache entries.
Index: tool/compile_prelude.rb
===================================================================
--- tool/compile_prelude.rb	(revision 24787)
+++ tool/compile_prelude.rb	(revision 24788)
@@ -100,7 +100,7 @@
 Init_<%=init_name%>(void)
 {
 % lines_list.each_with_index {|(setup_lines, lines), i|
-  rb_iseq_eval(rb_iseq_compile(
+  rb_iseq_eval_main(rb_iseq_compile(
     rb_usascii_str_new(prelude_code<%=i%>, sizeof(prelude_code<%=i%>) - 1),
     rb_usascii_str_new(prelude_name<%=i%>, sizeof(prelude_name<%=i%>) - 1),
     INT2FIX(<%=1-setup_lines.length%>)));

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

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