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

ruby-changes:36382

From: nobu <ko1@a...>
Date: Mon, 17 Nov 2014 03:17:59 +0900 (JST)
Subject: [ruby-changes:36382] nobu:r48463 (trunk): proc/receiver.c: commit miss

nobu	2014-11-17 03:17:24 +0900 (Mon, 17 Nov 2014)

  New Revision: 48463

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

  Log:
    proc/receiver.c: commit miss
    
    * ext/-test-/proc/receiver.c: wrapper for rb_current_receiver.
      [Feature #10195]

  Added files:
    trunk/ext/-test-/proc/receiver.c
Index: ext/-test-/proc/receiver.c
===================================================================
--- ext/-test-/proc/receiver.c	(revision 0)
+++ ext/-test-/proc/receiver.c	(revision 48463)
@@ -0,0 +1,21 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/proc/receiver.c#L1
+#include "ruby.h"
+
+VALUE rb_current_receiver(void);
+
+static VALUE
+bug_proc_call_receiver(RB_BLOCK_CALL_FUNC_ARGLIST(yieldarg, procarg))
+{
+    return rb_current_receiver();
+}
+
+static VALUE
+bug_proc_make_call_receiver(VALUE self, VALUE procarg)
+{
+    return rb_proc_new(bug_proc_call_receiver, procarg);
+}
+
+void
+Init_receiver(VALUE klass)
+{
+    rb_define_singleton_method(klass, "make_call_receiver", bug_proc_make_call_receiver, 1);
+}

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


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

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