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

ruby-changes:42667

From: nobu <ko1@a...>
Date: Sun, 24 Apr 2016 10:13:32 +0900 (JST)
Subject: [ruby-changes:42667] nobu:r54741 (trunk): regexec.c: constify

nobu	2016-04-24 11:10:09 +0900 (Sun, 24 Apr 2016)

  New Revision: 54741

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

  Log:
    regexec.c: constify
    
    * regexec.c (match_at): constify oplabels.

  Modified files:
    trunk/regexec.c
Index: regexec.c
===================================================================
--- regexec.c	(revision 54740)
+++ regexec.c	(revision 54741)
@@ -1372,7 +1372,7 @@ match_at(regex_t* reg, const UChar* str, https://github.com/ruby/ruby/blob/trunk/regexec.c#L1372
 #define NEXT sprev = sbegin; JUMP
 #define JUMP goto *oplabels[*p++]
 
-  static void  *oplabels[] = {
+  static const void *oplabels[] = {
     &&L_OP_FINISH,               /* matching process terminator (no more alternative) */
     &&L_OP_END,                  /* pattern code terminator (success end) */
 

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

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