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

ruby-changes:31620

From: nobu <ko1@a...>
Date: Sun, 17 Nov 2013 23:34:32 +0900 (JST)
Subject: [ruby-changes:31620] nobu:r43699 (trunk): string.c: constify

nobu	2013-11-17 23:34:24 +0900 (Sun, 17 Nov 2013)

  New Revision: 43699

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

  Log:
    string.c: constify
    
    * string.c (tr_find): constify argument table.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 43698)
+++ string.c	(revision 43699)
@@ -5710,7 +5710,7 @@ tr_setup_table(VALUE str, char stable[TR https://github.com/ruby/ruby/blob/trunk/string.c#L5710
 
 
 static int
-tr_find(unsigned int c, char table[TR_TABLE_SIZE], VALUE del, VALUE nodel)
+tr_find(unsigned int c, const char table[TR_TABLE_SIZE], VALUE del, VALUE nodel)
 {
     if (c < 256) {
 	return table[c] != 0;

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

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