From 4e9b37108c4efc092f03b64a06a43ef95f437541 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 10 Apr 2013 13:40:33 +0800 Subject: update tests_helper.h --- tests/tests_helper.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/tests_helper.h') diff --git a/tests/tests_helper.h b/tests/tests_helper.h index de8ea51..4f0869f 100644 --- a/tests/tests_helper.h +++ b/tests/tests_helper.h @@ -22,10 +22,11 @@ #ifndef TESTS_HELPER_H #define TESTS_HELPER_H -static bool load_phrase_index(FacadePhraseIndex * phrase_index){ +static 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) { - const pinyin_table_info_t * table_info = pinyin_phrase_files + i; + const pinyin_table_info_t * table_info = phrase_files + i; if (SYSTEM_FILE != table_info->m_file_type) continue; @@ -47,11 +48,12 @@ static bool load_phrase_index(FacadePhraseIndex * phrase_index){ return true; } -static bool load_phrase_table(ChewingLargeTable * chewing_table, +static bool load_phrase_table(const pinyin_table_info_t * phrase_files, + ChewingLargeTable * chewing_table, PhraseLargeTable2 * phrase_table, FacadePhraseIndex * phrase_index){ for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { - const pinyin_table_info_t * table_info = pinyin_phrase_files + i; + const pinyin_table_info_t * table_info = phrase_files + i; if (SYSTEM_FILE != table_info->m_file_type) continue; -- cgit