diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-17 13:58:33 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-17 14:16:14 +0800 |
commit | e13055bcabe4fa7d91c79f9938d55147990d1ec4 (patch) | |
tree | e9056b114cb276ffd9bc1fa51be797334846cc0a /src/storage | |
parent | 4d1083b728818d89c8547fee6dcfc09a8c67abec (diff) | |
download | libpinyin-e13055bcabe4fa7d91c79f9938d55147990d1ec4.tar.gz libpinyin-e13055bcabe4fa7d91c79f9938d55147990d1ec4.tar.xz libpinyin-e13055bcabe4fa7d91c79f9938d55147990d1ec4.zip |
write merge_sequence function
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/phrase_large_table2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h index 34bb12d..d92fa0e 100644 --- a/src/storage/phrase_large_table2.h +++ b/src/storage/phrase_large_table2.h @@ -118,7 +118,7 @@ public: static inline int reduce_tokens(const PhraseTokens tokens, - GArray * tokenarray) { + TokenVector tokenarray) { int num = 0; g_array_set_size(tokenarray, 0); @@ -143,7 +143,7 @@ static inline int get_first_token(const PhraseTokens tokens, /* out */ phrase_token_t & token){ token = null_token; - GArray * tokenarray = g_array_new(FALSE, FALSE, sizeof(phrase_token_t)); + TokenVector tokenarray = g_array_new(FALSE, FALSE, sizeof(phrase_token_t)); int num = reduce_tokens(tokens, tokenarray); if (num) token = g_array_index(tokenarray, phrase_token_t, 0); |