From 29f9a74d45deffa61a58c6395418bdff79979996 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 20 Dec 2011 12:50:43 +0800 Subject: add format version check --- src/pinyin.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pinyin.h') diff --git a/src/pinyin.h b/src/pinyin.h index b85ea53..7bed656 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -101,6 +101,13 @@ bool pinyin_translate_token(pinyin_instance_t * instance, bool pinyin_train(pinyin_instance_t * instance); bool pinyin_reset(pinyin_instance_t * instance); + +/* hack here. */ +typedef ChewingKey PinyinKey; +typedef ChewingKeyRest PinyinKeyPos; + +#define LIBPINYIN_FORMAT_VERSION "0.4.91" + }; #endif -- cgit