summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-26 11:50:55 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-26 11:50:55 +0000
commit262245b0c1a3d5d823fd36c2b688121649fd9e18 (patch)
tree96adea93dd39df1e5e6cd7d22fe9120bfbefc90e
parent307198a3c3ecd79b8b52c4cf7d405922e48964cc (diff)
* ext/continuation/continuation.c (Init_continuation): obsolete callcc.
first step of [Feature #10548]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/continuation/continuation.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b2c7640..6739c78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Nov 26 20:47:28 2014 Masaya Tarui <tarui@ruby-lang.org>
+
+ * ext/continuation/continuation.c (Init_continuation): obsolete callcc.
+ first step of [Feature #10548].
+
Wed Nov 26 19:57:54 2014 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_gc.rb (test_latest_gc_info): do test separately
diff --git a/ext/continuation/continuation.c b/ext/continuation/continuation.c
index ae69b66..71b52db 100644
--- a/ext/continuation/continuation.c
+++ b/ext/continuation/continuation.c
@@ -1,8 +1,11 @@
+#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();
}