diff options
author | Peng Wu <alexepico@gmail.com> | 2012-05-21 15:42:47 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-05-21 15:42:51 +0800 |
commit | 1f811cb28e6ed1d0c1665943dd37025cdca1381e (patch) | |
tree | f7cd4aa297e597ac3f1b0dec4d1763b80e739969 /utils | |
parent | 1b3140958408a80d029d59835d612f1b76f592ab (diff) | |
download | libpinyin-1f811cb28e6ed1d0c1665943dd37025cdca1381e.tar.gz libpinyin-1f811cb28e6ed1d0c1665943dd37025cdca1381e.tar.xz libpinyin-1f811cb28e6ed1d0c1665943dd37025cdca1381e.zip |
rename bin_file to binfile
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils_helper.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/utils_helper.h b/utils/utils_helper.h index 2f143c9..29e776a 100644 --- a/utils/utils_helper.h +++ b/utils/utils_helper.h @@ -26,14 +26,14 @@ static bool load_phrase_index(FacadePhraseIndex * phrase_index) { MemoryChunk * chunk = NULL; for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { - const char * bin_file = pinyin_phrase_files[i]; - if (NULL == bin_file) + const char * binfile = pinyin_phrase_files[i]; + if (NULL == binfile) continue; chunk = new MemoryChunk; - bool retval = chunk->load(bin_file); + bool retval = chunk->load(binfile); if (!retval) { - fprintf(stderr, "load %s failed!\n", bin_file); + fprintf(stderr, "load %s failed!\n", binfile); return false; } @@ -45,15 +45,15 @@ static bool load_phrase_index(FacadePhraseIndex * phrase_index) { static bool save_phrase_index(FacadePhraseIndex * phrase_index) { MemoryChunk * new_chunk = NULL; for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { - const char * bin_file = pinyin_phrase_files[i]; - if (NULL == bin_file) + const char * binfile = pinyin_phrase_files[i]; + if (NULL == binfile) continue; new_chunk = new MemoryChunk; phrase_index->store(i, new_chunk); - bool retval = new_chunk->save(bin_file); + bool retval = new_chunk->save(binfile); if (!retval) { - fprintf(stderr, "save %s failed.", bin_file); + fprintf(stderr, "save %s failed.", binfile); return false; } |