From 0f584cd4c62da45caceb2de16a22fcdcb82c0edb Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 12 Dec 2016 14:55:15 +0000 Subject: 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 --- st.c | 4 ++-- 1 file 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}, -- cgit v1.2.3