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

ruby-changes:10238

From: nobu <ko1@a...>
Date: Mon, 26 Jan 2009 18:04:16 +0900 (JST)
Subject: [ruby-changes:10238] Ruby:r21782 (ruby_1_8): * eval.c (Init_Cont): separated from Init_Thread() since

nobu	2009-01-26 18:03:53 +0900 (Mon, 26 Jan 2009)

  New Revision: 21782

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

  Log:
    * eval.c (Init_Cont): separated from Init_Thread() since
      rb_provide() must be after Init_Array().

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/eval.c
    branches/ruby_1_8/inits.c

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 21781)
+++ ruby_1_8/ChangeLog	(revision 21782)
@@ -1,3 +1,8 @@
+Mon Jan 26 18:03:52 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* eval.c (Init_Cont): separated from Init_Thread() since
+	  rb_provide() must be after Init_Array().
+
 Mon Jan 26 16:00:40 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* array.c (rb_ary_aset): fixed arguments evaluation order.
Index: ruby_1_8/inits.c
===================================================================
--- ruby_1_8/inits.c	(revision 21781)
+++ ruby_1_8/inits.c	(revision 21782)
@@ -16,6 +16,7 @@
 void Init_Bignum _((void));
 void Init_Binding _((void));
 void Init_Comparable _((void));
+void Init_Cont _((void));
 void Init_Dir _((void));
 void Init_Enumerable _((void));
 void Init_Enumerator _((void));
@@ -76,6 +77,7 @@
     Init_signal();
     Init_process();
     Init_load();
+    Init_Cont();
     Init_Proc();
     Init_Binding();
     Init_Math();
Index: ruby_1_8/eval.c
===================================================================
--- ruby_1_8/eval.c	(revision 21781)
+++ ruby_1_8/eval.c	(revision 21782)
@@ -13390,6 +13390,19 @@
     return Qnil;
 }
 
+void
+Init_Cont()
+{
+    rb_cCont = rb_define_class("Continuation", rb_cObject);
+    rb_undef_alloc_func(rb_cCont);
+    rb_undef_method(CLASS_OF(rb_cCont), "new");
+    rb_define_method(rb_cCont, "call", rb_cont_call, -1);
+    rb_define_method(rb_cCont, "[]", rb_cont_call, -1);
+    rb_define_global_function("callcc", rb_callcc, 0);
+    rb_global_variable(&cont_protect);
+    rb_provide("continuation.so");
+}
+
 struct thgroup {
     int enclosed;
     VALUE group;
@@ -13738,15 +13751,6 @@
 
     rb_define_method(rb_cThread, "inspect", rb_thread_inspect, 0);
 
-    rb_cCont = rb_define_class("Continuation", rb_cObject);
-    rb_undef_alloc_func(rb_cCont);
-    rb_undef_method(CLASS_OF(rb_cCont), "new");
-    rb_define_method(rb_cCont, "call", rb_cont_call, -1);
-    rb_define_method(rb_cCont, "[]", rb_cont_call, -1);
-    rb_define_global_function("callcc", rb_callcc, 0);
-    rb_global_variable(&cont_protect);
-    rb_provide("continuation.so");
-
     cThGroup = rb_define_class("ThreadGroup", rb_cObject);
     rb_define_alloc_func(cThGroup, thgroup_s_alloc);
     rb_define_method(cThGroup, "list", thgroup_list, 0);

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

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