ruby-changes:44780
From: nobu <ko1@a...>
Date: Sun, 20 Nov 2016 19:52:33 +0900 (JST)
Subject: [ruby-changes:44780] nobu:r56853 (trunk): proc.c: enable Proc#to_s rdoc
nobu 2016-11-20 19:52:28 +0900 (Sun, 20 Nov 2016) New Revision: 56853 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56853 Log: proc.c: enable Proc#to_s rdoc * proc.c (proc_to_s): move just after the rdoc comment. Modified files: trunk/proc.c Index: proc.c =================================================================== --- proc.c (revision 56852) +++ proc.c (revision 56853) @@ -1208,6 +1208,14 @@ proc_hash(VALUE self) https://github.com/ruby/ruby/blob/trunk/proc.c#L1208 */ static VALUE +proc_to_s(VALUE self) +{ + const rb_proc_t *proc; + GetProcPtr(self, proc); + return proc_to_s_(self, proc); +} + +static VALUE proc_to_s_(VALUE self, const rb_proc_t *proc) { VALUE str = 0; @@ -1250,14 +1258,6 @@ proc_to_s_(VALUE self, const rb_proc_t * https://github.com/ruby/ruby/blob/trunk/proc.c#L1258 return str; } -static VALUE -proc_to_s(VALUE self) -{ - const rb_proc_t *proc; - GetProcPtr(self, proc); - return proc_to_s_(self, proc); -} - /* * call-seq: * prc.to_proc -> proc -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/