diff options
author | William M. Brack <wbrack@src.gnome.org> | 2003-08-07 13:12:49 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2003-08-07 13:12:49 +0000 |
commit | 16db7b6ee445f76990ecf074432b69e21df56f2f (patch) | |
tree | 8c2aa97dd648e07ab0fcd80c9344143e97f5dc91 /encoding.c | |
parent | a71a8ef127c8811db2ebbce8086d6e2a8f3d241e (diff) | |
download | libxml2-16db7b6ee445f76990ecf074432b69e21df56f2f.tar.gz |
further small changes for warnings when configured with --with-iconv=no
* encoding.c: further small changes for warnings when
configured with --with-iconv=no
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -65,6 +65,10 @@ static int xmlCharEncodingAliasesMax = 0; #if 0 #define DEBUG_ENCODING /* Define this to get encoding traces */ #endif +#else +#ifdef LIBXML_ISO8859X_ENABLED +static void xmlRegisterCharEncodingHandlersISO8859x (void); +#endif #endif static int xmlLittleEndian = 1; @@ -2491,7 +2495,7 @@ UTF8ToISO8859x(unsigned char* out, int *outlen, return(-2); } c = *in++; - if (c & 0xC0 != 0xC0) { + if ((c & 0xC0) != 0xC0) { /* not a trailing byte */ *outlen = out - outstart; *inlen = in - instart - 2; @@ -2517,14 +2521,14 @@ UTF8ToISO8859x(unsigned char* out, int *outlen, return(-2); } c1 = *in++; - if (c1 & 0xC0 != 0xC0) { + if ((c1 & 0xC0) != 0xC0) { /* not a trailing byte (c1) */ *outlen = out - outstart; *inlen = in - instart - 2; return(-2); } c2 = *in++; - if (c2 & 0xC0 != 0xC0) { + if ((c2 & 0xC0) != 0xC0) { /* not a trailing byte (c2) */ *outlen = out - outstart; *inlen = in - instart - 2; |