summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-28 12:32:46 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-28 12:32:46 +0800
commit66eb528bfb26747e622e3b78dba606bff2b529ca (patch)
treef3d089d53eb46a00b5f90701d5e854ce069811ff
parent13491ff484f8fb34b7c06efd41a97cf87c65bd3d (diff)
downloadlibpinyin-66eb528bfb26747e622e3b78dba606bff2b529ca.zip
libpinyin-66eb528bfb26747e622e3b78dba606bff2b529ca.tar.gz
libpinyin-66eb528bfb26747e622e3b78dba606bff2b529ca.tar.xz
fixes check_format
-rw-r--r--src/pinyin.cpp10
-rw-r--r--src/pinyin.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index fa18db7..0549f7c 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -90,6 +90,16 @@ static bool check_format(const char * userdir){
}
filename = g_build_filename
+ (userdir, "user_pinyin_index.bin", NULL);
+ unlink(filename);
+ g_free(filename);
+
+ filename = g_build_filename
+ (userdir, "user_phrase_index.bin", NULL);
+ unlink(filename);
+ g_free(filename);
+
+ filename = g_build_filename
(userdir, "user.db", NULL);
unlink(filename);
g_free(filename);
diff --git a/src/pinyin.h b/src/pinyin.h
index 6cde671..96f9023 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -590,7 +590,7 @@ typedef ChewingKeyVector PinyinKeyVector;
typedef ChewingKeyRestVector PinyinKeyPosVector;
-#define LIBPINYIN_FORMAT_VERSION "0.8.0"
+#define LIBPINYIN_FORMAT_VERSION "0.8.1"
};