From f58a188f6db8f4b458d62cb2c345443a5253f9c1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 3 Jun 2008 15:24:57 +0200 Subject: [PATCH] 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. --- include/yaz/icu_I18N.h | 2 +- src/icu_I18N.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 1.7.10.4