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

ruby-changes:38256

From: nobu <ko1@a...>
Date: Fri, 17 Apr 2015 12:56:10 +0900 (JST)
Subject: [ruby-changes:38256] nobu:r50337 (trunk): nofree.c: Bug::String.nofree

nobu	2015-04-17 12:55:53 +0900 (Fri, 17 Apr 2015)

  New Revision: 50337

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

  Log:
    nofree.c: Bug::String.nofree
    
    * ext/-test-/string/nofree.c: new method for test of r50334.
      [ruby-core:68436] [Bug #10942]

  Added files:
    trunk/ext/-test-/string/nofree.c
Index: ext/-test-/string/nofree.c
===================================================================
--- ext/-test-/string/nofree.c	(revision 0)
+++ ext/-test-/string/nofree.c	(revision 50337)
@@ -0,0 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/string/nofree.c#L1
+#include "ruby.h"
+
+VALUE
+bug_str_nofree(VALUE self)
+{
+    return rb_str_new_cstr("abcdef");
+}
+
+void
+Init_nofree(VALUE klass)
+{
+    rb_define_singleton_method(klass, "nofree", bug_str_nofree, 0);
+}

Property changes on: ext/-test-/string/nofree.c
___________________________________________________________________
Added: svn:eol-style
   + LF


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

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