summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-04-09 14:54:55 +0800
committerPeng Wu <alexepico@gmail.com>2012-04-09 14:54:55 +0800
commit5fb692bdbe0dabfc59be5524f9c413e3a94d3e78 (patch)
tree61f9d7c8112928fcc9d90e1c462b5c26327df41e
parent8008d0bec8361c2b1756c68201cf8de61be8063f (diff)
downloadlibpinyin-5fb692bdbe0dabfc59be5524f9c413e3a94d3e78.tar.gz
libpinyin-5fb692bdbe0dabfc59be5524f9c413e3a94d3e78.tar.xz
libpinyin-5fb692bdbe0dabfc59be5524f9c413e3a94d3e78.zip
fixes compile
-rw-r--r--src/pinyin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index b93a158..2946385 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -492,7 +492,7 @@ static gint compare_token( gconstpointer lhs, gconstpointer rhs){
return token_lhs - token_rhs;
}
-#if 1
+#if 0
/* internal definition */
typedef struct {
@@ -617,8 +617,7 @@ typedef struct {
} compare_item_t;
static gint compare_item(gconstpointer lhs,
- gconstpointer rhs,
- gpointer user_data) {
+ gconstpointer rhs) {
compare_item_t * item_lhs = (compare_item_t *)lhs;
compare_item_t * item_rhs = (compare_item_t *)rhs;
@@ -670,7 +669,7 @@ bool pinyin_get_candidates(pinyin_instance_t * instance,
merge_single_gram(&merged_gram, system_gram, user_gram);
}
- PhraseIndexRange ranges;
+ PhraseIndexRanges ranges;
memset(ranges, 0, sizeof(ranges));
guint8 min_index, max_index;