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

ruby-changes:42834

From: nobu <ko1@a...>
Date: Wed, 4 May 2016 18:13:28 +0900 (JST)
Subject: [ruby-changes:42834] nobu:r54908 (trunk): proc.c: constify

nobu	2016-05-04 19:10:05 +0900 (Wed, 04 May 2016)

  New Revision: 54908

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

  Log:
    proc.c: constify
    
    * proc.c (method_callable_method_entry): constify data.

  Modified files:
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 54907)
+++ proc.c	(revision 54908)
@@ -1949,7 +1949,7 @@ rb_method_call(int argc, const VALUE *ar https://github.com/ruby/ruby/blob/trunk/proc.c#L1949
 }
 
 static const rb_callable_method_entry_t *
-method_callable_method_entry(struct METHOD *data)
+method_callable_method_entry(const struct METHOD *data)
 {
     if (data->me->defined_class == 0) rb_bug("method_callable_method_entry: not callable.");
     return (const rb_callable_method_entry_t *)data->me;

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

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