summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-03-26 10:31:18 +0800
committerPeng Wu <alexepico@gmail.com>2013-03-26 10:31:18 +0800
commitda39072b7e664dffe1b70b6f252fb310467c21a2 (patch)
treef8228dbcb99064e02fbef12638979d86731ad0fd
parent00fec992f5c760f546a1db933fb08325fc9cccbf (diff)
downloadlibpinyin-da39072b7e664dffe1b70b6f252fb310467c21a2.tar.gz
libpinyin-da39072b7e664dffe1b70b6f252fb310467c21a2.tar.xz
libpinyin-da39072b7e664dffe1b70b6f252fb310467c21a2.zip
add import dictionary
-rw-r--r--src/include/novel_types.h2
-rw-r--r--src/storage/phrase_index.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index eb71af6..80f9275 100644
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -160,7 +160,7 @@ typedef enum {
SCITECH_DICTIONARY,
SOCIETY_DICTIONARY,
SPORT_DICTIONARY,
- RESERVED1,
+ IMPORT_DICTIONARY,
USER_DICTIONARY
} PHRASE_INDEX_LIBRARIES;
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp
index 67afb97..95b44e3 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -677,7 +677,7 @@ const pinyin_table_info_t pinyin_phrase_files[PHRASE_INDEX_LIBRARY_COUNT] =
{SOCIETY_DICTIONARY, "society.table", "society.bin", "society.dbin", DICTIONARY},
{SPORT_DICTIONARY, "sport.table", "sport.bin", "sport.dbin", DICTIONARY},
- {RESERVED1, NULL, NULL, NULL, NOT_USED},
+ {IMPORT_DICTIONARY, NULL, NULL, "import.bin", USER_FILE},
{USER_DICTIONARY, NULL, NULL, "user.bin", USER_FILE}
};