summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/storage/test_phrase_table.cpp2
-rw-r--r--tests/tests_helper.h4
-rw-r--r--utils/utils_helper.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp
index d1bb954..dd142de 100644
--- a/tests/storage/test_phrase_table.cpp
+++ b/tests/storage/test_phrase_table.cpp
@@ -62,7 +62,7 @@ int main(int argc, char * argv[]){
phrase_index.clear_tokens(tokens);
retval = largetable.search(i, new_phrase, tokens);
if (retval & SEARCH_CONTINUED)
- printf("return continued information with length:%d\n", i);
+ printf("return continued information with length:%ld\n", i);
}
phrase_index.clear_tokens(tokens);
diff --git a/tests/tests_helper.h b/tests/tests_helper.h
index 431dbc8..6f41f8f 100644
--- a/tests/tests_helper.h
+++ b/tests/tests_helper.h
@@ -22,7 +22,7 @@
#ifndef TESTS_HELPER_H
#define TESTS_HELPER_H
-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) {
@@ -49,7 +49,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
return true;
}
-static bool load_phrase_table(const pinyin_table_info_t * phrase_files,
+inline bool load_phrase_table(const pinyin_table_info_t * phrase_files,
ChewingLargeTable * chewing_table,
PhraseLargeTable2 * phrase_table,
FacadePhraseIndex * phrase_index){
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) {