summaryrefslogtreecommitdiffstats
path: root/utils/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-19 15:27:46 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-19 15:27:46 +0800
commit46e6218e04b40b3fece89f752c8ac6334e5782d1 (patch)
tree027a931f65b899bf8ca6ce8842715e4d1bf62525 /utils/storage
parentc446681d0c6e546b2cc1d3863ebea57757b12a21 (diff)
downloadlibpinyin-46e6218e04b40b3fece89f752c8ac6334e5782d1.tar.gz
libpinyin-46e6218e04b40b3fece89f752c8ac6334e5782d1.tar.xz
libpinyin-46e6218e04b40b3fece89f752c8ac6334e5782d1.zip
add save_dictionary
Diffstat (limited to 'utils/storage')
-rw-r--r--utils/storage/gen_binary_files.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp
index 606ea69..ac0f45c 100644
--- a/utils/storage/gen_binary_files.cpp
+++ b/utils/storage/gen_binary_files.cpp
@@ -96,5 +96,8 @@ int main(int argc, char * argv[]){
if (!save_phrase_index(&phrase_index))
exit(ENOENT);
+ if (!save_dictionary(&phrase_index))
+ exit(ENOENT);
+
return 0;
}