X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fstemmer.c;h=21682a3654ef23f8b6290da9059e2242ebf9c33f;hb=b756b711841bac38e5b69baa51939ca9e1c01adb;hp=e67d9b1c87cd78230e8a259a771b7bd37344e160;hpb=5909f3400a7e326c0a64bb56bc0567488669534f;p=yaz-moved-to-github.git diff --git a/src/stemmer.c b/src/stemmer.c index e67d9b1..21682a3 100644 --- a/src/stemmer.c +++ b/src/stemmer.c @@ -1,13 +1,11 @@ #if HAVE_CONFIG_H -#include "config.h" +#include #endif #if YAZ_HAVE_ICU -#include - #include #include @@ -27,9 +25,7 @@ struct yaz_stemmer_t // Required for cloning. char *locale; char *rule; - union { - struct sb_stemmer *sb_stemmer; - }; + struct sb_stemmer *sb_stemmer; }; const char* yaz_stemmer_lookup_charenc(const char *charenc, const char *rule) { @@ -89,8 +85,12 @@ void yaz_stemmer_stem(yaz_stemmer_p stemmer, struct icu_buf_utf16 *dst, struct i icu_buf_utf16_copy(dst, src); } else { - const char *cstr = (const char *) sb_symbol; - icu_utf16_from_utf8_cstr(dst, cstr , status); + + const char *cstr2 = (const char *) sb_symbol; + icu_utf16_from_utf8_cstr(dst, cstr2 , status); +#if 0 + yaz_log(YLOG_DEBUG, "stemming %s to %s ", cstr, cstr2); +#endif } } icu_buf_utf8_destroy(utf8_buf);