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

ruby-changes:36540

From: nobu <ko1@a...>
Date: Fri, 28 Nov 2014 04:58:21 +0900 (JST)
Subject: [ruby-changes:36540] nobu:r48622 (trunk): continuation.c: quiet static-linked-ext

nobu	2014-11-28 04:58:04 +0900 (Fri, 28 Nov 2014)

  New Revision: 48622

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

  Log:
    continuation.c: quiet static-linked-ext
    
    * ext/continuation/continuation.c (Init_continuation): start
      quietly if statically linked.

  Modified files:
    trunk/ext/continuation/continuation.c
Index: ext/continuation/continuation.c
===================================================================
--- ext/continuation/continuation.c	(revision 48621)
+++ ext/continuation/continuation.c	(revision 48622)
@@ -6,6 +6,8 @@ void ruby_Init_Continuation_body(void); https://github.com/ruby/ruby/blob/trunk/ext/continuation/continuation.c#L6
 void
 Init_continuation(void)
 {
+#ifndef RUBY_EXPORT
     rb_warn("callcc is obsolete; use Fiber instead");
+#endif
     ruby_Init_Continuation_body();
 }

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

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