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

ruby-changes:36506

From: tarui <ko1@a...>
Date: Wed, 26 Nov 2014 20:51:05 +0900 (JST)
Subject: [ruby-changes:36506] tarui:r48588 (trunk): * ext/continuation/continuation.c (Init_continuation): obsolete callcc.

tarui	2014-11-26 20:50:55 +0900 (Wed, 26 Nov 2014)

  New Revision: 48588

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

  Log:
    * ext/continuation/continuation.c (Init_continuation): obsolete callcc.
      first step of [Feature #10548].

  Modified files:
    trunk/ChangeLog
    trunk/ext/continuation/continuation.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48587)
+++ ChangeLog	(revision 48588)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov 26 20:47:28 2014  Masaya Tarui  <tarui@r...>
+
+	* ext/continuation/continuation.c (Init_continuation): obsolete callcc.
+	  first step of [Feature #10548].
+
 Wed Nov 26 19:57:54 2014  Koichi Sasada  <ko1@a...>
 
 	* test/ruby/test_gc.rb (test_latest_gc_info): do test separately
Index: ext/continuation/continuation.c
===================================================================
--- ext/continuation/continuation.c	(revision 48587)
+++ ext/continuation/continuation.c	(revision 48588)
@@ -1,8 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ext/continuation/continuation.c#L1
 
+#include "ruby/ruby.h"
+
 void ruby_Init_Continuation_body(void);
 
 void
 Init_continuation(void)
 {
+    rb_warn("callcc is obsolete; use Fiber instead");
     ruby_Init_Continuation_body();
 }

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

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