diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pinyin.cpp | 4 | ||||
-rw-r--r-- | src/pinyin_internal.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index c353c1f..34169fb 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -424,7 +424,7 @@ pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir){ /* load addon system chewing table. */ chunk = new MemoryChunk; filename = g_build_filename - (context->m_system_dir, ADDON_PINYIN_INDEX, NULL); + (context->m_system_dir, ADDON_SYSTEM_PINYIN_INDEX, NULL); #ifdef LIBPINYIN_USE_MMAP if (!chunk->mmap(filename)) { @@ -448,7 +448,7 @@ pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir){ /* load addon system phrase table */ chunk = new MemoryChunk; filename = g_build_filename - (context->m_system_dir, ADDON_PHRASE_INDEX, NULL); + (context->m_system_dir, ADDON_SYSTEM_PHRASE_INDEX, NULL); #ifdef LIBPINYIN_USE_MMAP if (!chunk->mmap(filename)) { diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h index 7b8b245..72fb04f 100644 --- a/src/pinyin_internal.h +++ b/src/pinyin_internal.h @@ -58,8 +58,8 @@ #define USER_PINYIN_INDEX "user_pinyin_index.bin" #define SYSTEM_PHRASE_INDEX "phrase_index.bin" #define USER_PHRASE_INDEX "user_phrase_index.bin" -#define ADDON_PINYIN_INDEX "addon_pinyin_index.bin" -#define ADDON_PHRASE_INDEX "addon_phrase_index.bin" +#define ADDON_SYSTEM_PINYIN_INDEX "addon_pinyin_index.bin" +#define ADDON_SYSTEM_PHRASE_INDEX "addon_phrase_index.bin" using namespace pinyin; |