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

ruby-changes:18868

From: nagachika <ko1@a...>
Date: Fri, 18 Feb 2011 00:10:23 +0900 (JST)
Subject: [ruby-changes:18868] Ruby:r30892 (trunk): * iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info

nagachika	2011-02-18 00:08:36 +0900 (Fri, 18 Feb 2011)

  New Revision: 30892

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

  Log:
    * iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info
       with nil. this fix exception in rb_iseq_load().

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30891)
+++ ChangeLog	(revision 30892)
@@ -1,3 +1,8 @@
+Thu Feb 17 23:54:29 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
+
+	* iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info
+	  with nil. this fix exception in rb_iseq_load().
+
 Thu Feb 17 22:32:35 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
 
 	* test/ruby/test_marshal.rb (test_marshal_dump_extra_iv):
Index: iseq.c
===================================================================
--- iseq.c	(revision 30891)
+++ iseq.c	(revision 30892)
@@ -250,6 +250,7 @@
 
     iseq->compile_data = ALLOC(struct iseq_compile_data);
     MEMZERO(iseq->compile_data, struct iseq_compile_data, 1);
+    iseq->compile_data->err_info = Qnil;
     iseq->compile_data->mark_ary = rb_ary_tmp_new(3);
 
     iseq->compile_data->storage_head = iseq->compile_data->storage_current =

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

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