diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-30 00:25:20 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-30 00:25:20 +0000 |
commit | 7712c61effc3ef39d0b9eaf060049d11441884bf (patch) | |
tree | 5ef5c0a25f85b5bb0c7e528514ae58d5e5fefe43 /src | |
parent | 16643b695cdc00dfc4580bb66b894b931ff74693 (diff) | |
download | libparserutils-7712c61effc3ef39d0b9eaf060049d11441884bf.tar.gz libparserutils-7712c61effc3ef39d0b9eaf060049d11441884bf.tar.bz2 |
Pedantic whitespace changes
svn path=/trunk/libparserutils/; revision=5842
Diffstat (limited to 'src')
-rw-r--r-- | src/charset/codecs/codec_8859.c | 3 | ||||
-rw-r--r-- | src/charset/codecs/codec_ascii.c | 3 | ||||
-rw-r--r-- | src/charset/codecs/codec_ext8.c | 3 | ||||
-rw-r--r-- | src/charset/codecs/codec_utf8.c | 3 | ||||
-rw-r--r-- | src/charset/encodings/utf8impl.h | 8 |
5 files changed, 8 insertions, 12 deletions
diff --git a/src/charset/codecs/codec_8859.c b/src/charset/codecs/codec_8859.c index b76a2c7..ee5f8ce 100644 --- a/src/charset/codecs/codec_8859.c +++ b/src/charset/codecs/codec_8859.c @@ -236,8 +236,7 @@ parserutils_error charset_8859_codec_encode(parserutils_charset_codec *codec, uint32_t len; assert(error == PARSERUTILS_NOMEM); - for (len = 0; - len < c->write_len; len++) { + for (len = 0; len < c->write_len; len++) { c->write_buf[len] = pwrite[len]; } diff --git a/src/charset/codecs/codec_ascii.c b/src/charset/codecs/codec_ascii.c index eb7d66e..f91b1e9 100644 --- a/src/charset/codecs/codec_ascii.c +++ b/src/charset/codecs/codec_ascii.c @@ -190,8 +190,7 @@ parserutils_error charset_ascii_codec_encode(parserutils_charset_codec *codec, uint32_t len; assert(error == PARSERUTILS_NOMEM); - for (len = 0; - len < c->write_len; len++) { + for (len = 0; len < c->write_len; len++) { c->write_buf[len] = pwrite[len]; } diff --git a/src/charset/codecs/codec_ext8.c b/src/charset/codecs/codec_ext8.c index 5151e5f..82fef3d 100644 --- a/src/charset/codecs/codec_ext8.c +++ b/src/charset/codecs/codec_ext8.c @@ -230,8 +230,7 @@ parserutils_error charset_ext8_codec_encode(parserutils_charset_codec *codec, uint32_t len; assert(error == PARSERUTILS_NOMEM); - for (len = 0; - len < c->write_len; len++) { + for (len = 0; len < c->write_len; len++) { c->write_buf[len] = pwrite[len]; } diff --git a/src/charset/codecs/codec_utf8.c b/src/charset/codecs/codec_utf8.c index f9cd00a..ad46766 100644 --- a/src/charset/codecs/codec_utf8.c +++ b/src/charset/codecs/codec_utf8.c @@ -187,8 +187,7 @@ parserutils_error charset_utf8_codec_encode(parserutils_charset_codec *codec, abort(); /* Insufficient output buffer space */ - for (len = 0; - len < c->write_len; len++) { + for (len = 0; len < c->write_len; len++) { c->write_buf[len] = pwrite[len]; } diff --git a/src/charset/encodings/utf8impl.h b/src/charset/encodings/utf8impl.h index 45707aa..a51eef1 100644 --- a/src/charset/encodings/utf8impl.h +++ b/src/charset/encodings/utf8impl.h @@ -84,7 +84,7 @@ do { \ break; \ } \ \ - for (i = 1; i < n; i++) { \ + for (i = 1; i < n; i++) { \ uint32_t t = s[i]; \ \ if ((t & 0xC0) != 0x80) { \ @@ -158,9 +158,9 @@ do { \ \ if (l == 1) { \ buf[0] = (uint8_t) ucs4; \ - } else { \ - uint8_t i; \ - for (i = l; i > 1; i--) { \ + } else { \ + uint8_t i; \ + for (i = l; i > 1; i--) { \ buf[i - 1] = 0x80 | (ucs4 & 0x3F); \ ucs4 >>= 6; \ } \ |