summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-25 01:08:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-25 01:08:45 +0000
commit00756578b3669b98aabc334bbf8d8244db893c6c (patch)
tree8d29c3b85c8b26019b2264c1aa725b4a8f84b2af /regex.c
parentc216c9e0be9d1f38c629e62fbd8c2782bfc3c1c5 (diff)
downloadruby-00756578b3669b98aabc334bbf8d8244db893c6c.tar.gz
ruby-00756578b3669b98aabc334bbf8d8244db893c6c.tar.xz
ruby-00756578b3669b98aabc334bbf8d8244db893c6c.zip
* regex.c (mbc_startpos_func): shoud be static.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex.c b/regex.c
index 3f3875765..cef0a855e 100644
--- a/regex.c
+++ b/regex.c
@@ -469,7 +469,7 @@ re_set_syntax(syntax)
((current_mbctype != MBCTYPE_UTF8) ? ((c<0x100) ? (c) : (((c)>>8)&0xff)) : utf8_firstbyte(c))
typedef unsigned int (*mbc_startpos_func_t) _((const char *string, unsigned int pos));
-const mbc_startpos_func_t mbc_startpos_func[];
+static const mbc_startpos_func_t mbc_startpos_func[];
#define mbc_startpos(start, pos) (*mbc_startpos_func[current_mbctype])((start), (pos))
static unsigned int
@@ -4573,7 +4573,7 @@ utf8_startpos(string, pos)
return i + w;
}
-const mbc_startpos_func_t mbc_startpos_func[4] = {
+static const mbc_startpos_func_t mbc_startpos_func[4] = {
asc_startpos, euc_startpos, sjis_startpos, utf8_startpos
};