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:34:06 +0800
commit1b52b36dde0fda71df328ea874431b2c4f424e04 (patch)
treebda8c43d0411e8a56fc6e53926a9bf48d1ca8464
parent0bd4ccf6a1a74e12a1921578d8338c9c281fdf87 (diff)
downloadlibpinyin-0.8.x.zip
libpinyin-0.8.x.tar.gz
libpinyin-0.8.x.tar.xz
fixes check_format0.8.x
-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 e523119..4ad42a0 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 2f8a8db..0f57462 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -506,7 +506,7 @@ typedef ChewingKeyVector PinyinKeyVector;
typedef ChewingKeyRestVector PinyinKeyPosVector;
-#define LIBPINYIN_FORMAT_VERSION "0.8.0"
+#define LIBPINYIN_FORMAT_VERSION "0.8.1"
};