aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-12 14:55:15 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-12 14:55:15 +0000
commit0f584cd4c62da45caceb2de16a22fcdcb82c0edb (patch)
tree438a689c633fbb2825d23d2dcfd4230d7507a681
parent6d80e314dca8aced2530981068b7f642decb731f (diff)
downloadruby-0f584cd4c62da45caceb2de16a22fcdcb82c0edb.tar.gz
st: Add 'static const'
patched by Ken Takata [ruby-core:78558] https://github.com/k-takata/Onigmo/commit/44e3c0a16da1116be641ea807c1202434b743ace git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 887b81bc03..927fa760a5 100644
--- a/st.c
+++ b/st.c
@@ -192,7 +192,7 @@ struct st_features {
/* 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[] = {
#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},