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

ruby-changes:30366

From: nobu <ko1@a...>
Date: Thu, 8 Aug 2013 14:48:58 +0900 (JST)
Subject: [ruby-changes:30366] nobu:r42435 (trunk): proc.c: constifiy

nobu	2013-08-08 14:48:52 +0900 (Thu, 08 Aug 2013)

  New Revision: 42435

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

  Log:
    proc.c: constifiy
    
    * proc.c (rb_proc_call_with_block): constifiy argv.

  Modified files:
    trunk/include/ruby/intern.h
    trunk/proc.c
Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 42434)
+++ include/ruby/intern.h	(revision 42435)
@@ -407,7 +407,7 @@ VALUE rb_block_lambda(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L407
 VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
 VALUE rb_obj_is_proc(VALUE);
 VALUE rb_proc_call(VALUE, VALUE);
-VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE);
+VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE);
 int rb_proc_arity(VALUE);
 VALUE rb_proc_lambda_p(VALUE);
 VALUE rb_binding_new(void);
Index: proc.c
===================================================================
--- proc.c	(revision 42434)
+++ proc.c	(revision 42435)
@@ -601,7 +601,7 @@ rb_proc_call(VALUE self, VALUE args) https://github.com/ruby/ruby/blob/trunk/proc.c#L601
 }
 
 VALUE
-rb_proc_call_with_block(VALUE self, int argc, VALUE *argv, VALUE pass_procval)
+rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE pass_procval)
 {
     VALUE vret;
     rb_proc_t *proc;

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

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