summaryrefslogtreecommitdiffstats
path: root/tests/tests_helper.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-21 15:42:47 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-21 15:42:51 +0800
commit1f811cb28e6ed1d0c1665943dd37025cdca1381e (patch)
treef7cd4aa297e597ac3f1b0dec4d1763b80e739969 /tests/tests_helper.h
parent1b3140958408a80d029d59835d612f1b76f592ab (diff)
downloadlibpinyin-1f811cb28e6ed1d0c1665943dd37025cdca1381e.tar.gz
libpinyin-1f811cb28e6ed1d0c1665943dd37025cdca1381e.tar.xz
libpinyin-1f811cb28e6ed1d0c1665943dd37025cdca1381e.zip
rename bin_file to binfile
Diffstat (limited to 'tests/tests_helper.h')
-rw-r--r--tests/tests_helper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tests_helper.h b/tests/tests_helper.h
index daaa68a..af1b38a 100644
--- a/tests/tests_helper.h
+++ b/tests/tests_helper.h
@@ -25,16 +25,16 @@
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;
gchar * filename = g_build_filename("..", "..", "data",
- bin_file, NULL);
+ binfile, NULL);
chunk = new MemoryChunk;
bool retval = chunk->load(filename);
if (!retval) {
- fprintf(stderr, "open %s failed!\n", bin_file);
+ fprintf(stderr, "open %s failed!\n", binfile);
return false;
}