summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-03 17:35:21 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-03 17:35:21 +0800
commit3c5ef62e8f6399f26ef95d75b235e66d94811e99 (patch)
treeedd643a26e8e977e42577839e50be715f720ce3e /utils
parenta7efd29de74fcef6667c3e2c1695c39b3a48c477 (diff)
downloadlibpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.tar.gz
libpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.tar.xz
libpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.zip
fixes warnings
Diffstat (limited to 'utils')
-rw-r--r--utils/utils_helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/utils_helper.h b/utils/utils_helper.h
index b91067b..9172024 100644
--- a/utils/utils_helper.h
+++ b/utils/utils_helper.h
@@ -70,7 +70,7 @@
} while(false);
-static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
+inline bool load_phrase_index(const pinyin_table_info_t * phrase_files,
FacadePhraseIndex * phrase_index) {
MemoryChunk * chunk = NULL;
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
@@ -94,7 +94,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
return true;
}
-static bool save_phrase_index(const pinyin_table_info_t * phrase_files,
+inline bool save_phrase_index(const pinyin_table_info_t * phrase_files,
FacadePhraseIndex * phrase_index) {
MemoryChunk * new_chunk = NULL;
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
@@ -119,7 +119,7 @@ static bool save_phrase_index(const pinyin_table_info_t * phrase_files,
return true;
}
-static bool save_dictionary(const pinyin_table_info_t * phrase_files,
+inline bool save_dictionary(const pinyin_table_info_t * phrase_files,
FacadePhraseIndex * phrase_index) {
MemoryChunk * new_chunk = NULL;
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {