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

ruby-changes:42818

From: nobu <ko1@a...>
Date: Tue, 3 May 2016 09:25:43 +0900 (JST)
Subject: [ruby-changes:42818] nobu:r54892 (trunk): eval.c: constify

nobu	2016-05-03 10:22:18 +0900 (Tue, 03 May 2016)

  New Revision: 54892

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

  Log:
    eval.c: constify
    
    * eval.c (extract_raise_opts): constify argv.

  Modified files:
    trunk/eval.c
Index: eval.c
===================================================================
--- eval.c	(revision 54891)
+++ eval.c	(revision 54892)
@@ -605,7 +605,7 @@ rb_interrupt(void) https://github.com/ruby/ruby/blob/trunk/eval.c#L605
 enum {raise_opt_cause, raise_max_opt};
 
 static int
-extract_raise_opts(int argc, VALUE *argv, VALUE *opts)
+extract_raise_opts(int argc, const VALUE *argv, VALUE *opts)
 {
     int i;
     if (argc > 0) {

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

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