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

ruby-changes:44992

From: naruse <ko1@a...>
Date: Mon, 12 Dec 2016 23:55:19 +0900 (JST)
Subject: [ruby-changes:44992] naruse:r57065 (trunk): st: Add 'static const'

naruse	2016-12-12 23:55:15 +0900 (Mon, 12 Dec 2016)

  New Revision: 57065

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

  Log:
    st: Add 'static const'
    
    patched by Ken Takata [ruby-core:78558]
    https://github.com/k-takata/Onigmo/commit/44e3c0a16da1116be641ea807c1202434b743ace

  Modified files:
    trunk/st.c
Index: st.c
===================================================================
--- st.c	(revision 57064)
+++ st.c	(revision 57065)
@@ -192,7 +192,7 @@ struct st_features { https://github.com/ruby/ruby/blob/trunk/st.c#L192
 /* Features of all possible size tables.  */
 #if SIZEOF_ST_INDEX_T == 8
 #define MAX_POWER2 62
-struct st_features features[] = {
+static const struct st_features features[] = {
     {0, 1, 0, 0x0},
     {1, 2, 0, 0x1},
     {2, 3, 0, 0x1},
@@ -261,7 +261,7 @@ struct st_features features[] = { https://github.com/ruby/ruby/blob/trunk/st.c#L261
 #else
 #define MAX_POWER2 30
 
-struct st_features features[] = {
+static const struct st_features features[] = {
     {0, 1, 0, 0x1},
     {1, 2, 0, 0x1},
     {2, 3, 0, 0x2},

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

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