summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-16 13:45:45 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-16 13:45:45 +0800
commit69aeaf03a8b0694269108a7a2d4297b7ddec289f (patch)
tree7530ad5914d46d329b321c3521a1695cc3ba7e83
parent3d38c9355a73b58f327aa370a9290b8ff5fb349e (diff)
downloadlibpinyin-69aeaf03a8b0694269108a7a2d4297b7ddec289f.tar.gz
libpinyin-69aeaf03a8b0694269108a7a2d4297b7ddec289f.tar.xz
libpinyin-69aeaf03a8b0694269108a7a2d4297b7ddec289f.zip
fixes compile
-rw-r--r--scripts2/templates/zhuyin_table.h.in2
-rw-r--r--src/pinyin.cpp2
-rw-r--r--src/storage/zhuyin_table.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts2/templates/zhuyin_table.h.in b/scripts2/templates/zhuyin_table.h.in
index f8ba529..9760d4f 100644
--- a/scripts2/templates/zhuyin_table.h.in
+++ b/scripts2/templates/zhuyin_table.h.in
@@ -107,7 +107,7 @@ const zhuyin_tone_item_t chewing_dachen_cp26_tones[] = {
@DACHEN-CP26_TONES@
};
-const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
+static const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
"",
" ",
"ˊ",
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index afdaa09..c123ce1 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1339,7 +1339,7 @@ bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance,
const char key, gchar *** symbols) {
pinyin_context_t * & context = instance->m_context;
return context->m_chewing_parser->in_chewing_scheme
- (context->m_options, key, *symbol);
+ (context->m_options, key, *symbols);
}
static bool _token_get_phrase(FacadePhraseIndex * phrase_index,
diff --git a/src/storage/zhuyin_table.h b/src/storage/zhuyin_table.h
index 4de0cd2..cde77bf 100644
--- a/src/storage/zhuyin_table.h
+++ b/src/storage/zhuyin_table.h
@@ -488,7 +488,7 @@ const zhuyin_tone_item_t chewing_dachen_cp26_tones[] = {
{'\0', 0}
};
-const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
+static const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
"",
" ",
"ˊ",