]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 15 Jul 2000 06:14:56 +0000 (06:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 15 Jul 2000 06:14:56 +0000 (06:14 +0000)
2000-07-14  Ulrich Drepper  <drepper@redhat.com>

* iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
transliteration function did its job, continue, don't stop.

* iconvdata/iso646.c: Little optimizations in body for conversion
from UCS4.

ChangeLog
iconv/loop.c
iconvdata/iso646.c

index ea6b428d292eb454430bb4d2f9ae8ee6a5e4f56d..26faaf9a7a3a6b9be3ec4a83368df5766a5504aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-07-14  Ulrich Drepper  <drepper@redhat.com>
+
+       * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
+       transliteration function did its job, continue, don't stop.
+
+       * iconvdata/iso646.c: Little optimizations in body for conversion
+       from UCS4.
+
 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
 
        * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
index b8e798682edb87948f62d9d461c515b995200d91..9d168d84e9c77ad61497972adfa35694b5c0fe63 100644 (file)
        if (result != __GCONV_ILLEGAL_INPUT)                                  \
          break;                                                              \
       }                                                                              \
-    /* If any of them recognized the input stop.  */                         \
+    /* If any of them recognized the input continue with the loop.  */       \
     if (result != __GCONV_ILLEGAL_INPUT)                                     \
-      break;                                                                 \
+      continue;                                                                      \
                                                                              \
     /* Next see whether we have to ignore the error.  If not, stop.  */              \
     if (! ignore_errors_p ())                                                \
index 99dc0251b09019fa7933e5609d0f000cb3bbb7bf..d26ed5e3e427794bd041c74c6c796595b837d396 100644 (file)
@@ -434,11 +434,11 @@ gconv_end (struct __gconv_step *data)
 #define LOOPFCT                        TO_LOOP
 #define BODY \
   {                                                                          \
-    unsigned char ch;                                                        \
+    unsigned int ch;                                                         \
     int failure = __GCONV_OK;                                                \
                                                                              \
     ch = get32 (inptr);                                                              \
-    switch (*((uint32_t *) inptr))                                           \
+    switch (ch)                                                                      \
       {                                                                              \
       case 0x23:                                                             \
        if (var == GB || var == ES || var == IT || var == FR || var == FR1    \
@@ -878,7 +878,7 @@ gconv_end (struct __gconv_step *data)
        ch = 0x5d;                                                            \
        break;                                                                \
       default:                                                               \
-       if (*((uint32_t *) inptr) > 0x7f)                                     \
+       if (__builtin_expect (ch, 0) > 0x7f)                                  \
          failure = __GCONV_ILLEGAL_INPUT;                                    \
        break;                                                                \
       }                                                                              \
This page took 0.054316 seconds and 5 git commands to generate.