From: Adam Dickmeiss Date: Mon, 8 Mar 2010 20:04:48 +0000 (+0100) Subject: icu_iter_get_token_number returns int X-Git-Tag: v4.0.2~3 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=387f22c564289db77315c0d6914e127fc99774bc;p=yaz-moved-to-github.git icu_iter_get_token_number returns int --- diff --git a/include/yaz/icu.h b/include/yaz/icu.h index 4abba69..10af2a3 100644 --- a/include/yaz/icu.h +++ b/include/yaz/icu.h @@ -168,7 +168,7 @@ const char *icu_iter_get_display(yaz_icu_iter_t iter); \returns token count (1, 2, 3...) */ YAZ_EXPORT -const char *icu_iter_get_token_number(yaz_icu_iter_t iter); +int icu_iter_get_token_number(yaz_icu_iter_t iter); YAZ_END_CDECL diff --git a/src/icu_chain.c b/src/icu_chain.c index e1addb7..8ae80fc 100644 --- a/src/icu_chain.c +++ b/src/icu_chain.c @@ -490,7 +490,7 @@ const char *icu_iter_get_display(yaz_icu_iter_t iter) return icu_buf_utf8_to_cstr(iter->display); } -const char *icu_iter_get_token_number(yaz_icu_iter_t iter) +int icu_iter_get_token_number(yaz_icu_iter_t iter) { return iter->token_count; }