ICU parse_error no longer an array.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Jun 2008 13:24:57 +0000 (15:24 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Jun 2008 13:24:57 +0000 (15:24 +0200)
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
src/icu_I18N.c

index 5be3957..f69daf9 100644 (file)
@@ -166,7 +166,7 @@ struct icu_normalizer
 {
     char action;
     struct icu_buf_utf16 * rules16;
-    UParseError parse_error[256];
+    UParseError parse_error;
     UTransliterator * trans;
 };
 
index 764d8f7..d3f8a4b 100644 (file)
@@ -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;