From: Adam Dickmeiss Date: Tue, 3 Jun 2008 13:24:57 +0000 (+0200) Subject: ICU parse_error no longer an array. X-Git-Tag: v3.0.30~22 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f58a188f6db8f4b458d62cb2c345443a5253f9c1;p=yaz-moved-to-github.git ICU parse_error no longer an array. The parse_error member in icu_normalizer is no longer an array of size 256. There seems to be no need for this and we don't know why it came up in the first place. --- diff --git a/include/yaz/icu_I18N.h b/include/yaz/icu_I18N.h index 5be3957..f69daf9 100644 --- a/include/yaz/icu_I18N.h +++ b/include/yaz/icu_I18N.h @@ -166,7 +166,7 @@ struct icu_normalizer { char action; struct icu_buf_utf16 * rules16; - UParseError parse_error[256]; + UParseError parse_error; UTransliterator * trans; }; diff --git a/src/icu_I18N.c b/src/icu_I18N.c index 764d8f7..d3f8a4b 100644 --- a/src/icu_I18N.c +++ b/src/icu_I18N.c @@ -672,7 +672,7 @@ struct icu_normalizer * icu_normalizer_create(const char *rules, char action, normalizer->rules16->utf16_len, UTRANS_FORWARD, 0, 0, - normalizer->parse_error, status); + &normalizer->parse_error, status); break; case 'r': case 'R': @@ -681,7 +681,7 @@ struct icu_normalizer * icu_normalizer_create(const char *rules, char action, normalizer->rules16->utf16_len, UTRANS_REVERSE , 0, 0, - normalizer->parse_error, status); + &normalizer->parse_error, status); break; default: *status = U_UNSUPPORTED_ERROR;