diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-25 01:08:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-25 01:08:29 +0200 |
commit | a97605e07ad7f44f2f65e15be64880e61a39ab43 (patch) | |
tree | 740527503048f5a2b2078741cfd13fc2ae6d4d1e /avahi-common/utf8.c | |
parent | 238909aaff10489fe538c8c54e3f82fe8a54b849 (diff) |
from now on we enforce a strict whitespace regime
Diffstat (limited to 'avahi-common/utf8.c')
-rw-r--r-- | avahi-common/utf8.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/avahi-common/utf8.c b/avahi-common/utf8.c index f52ce55..0fe42d0 100644 --- a/avahi-common/utf8.c +++ b/avahi-common/utf8.c @@ -37,8 +37,8 @@ (((Char) & 0xFFFFF800) != 0xD800) && \ ((Char) < 0xFDD0 || (Char) > 0xFDEF) && \ ((Char) & 0xFFFE) != 0xFFFE) - - + + #define CONTINUATION_CHAR \ do { \ if ((*(const unsigned char *)p & 0xc0) != 0x80) /* 10xxxxxx */ \ @@ -60,10 +60,10 @@ avahi_utf8_valid (const char *str) { if (*(const unsigned char *)p < 128) /* done */; - else + else { const char *last; - + last = p; if ((*(const unsigned char *)p & 0xe0) == 0xc0) /* 110xxxxx */ { @@ -88,7 +88,7 @@ avahi_utf8_valid (const char *str) } else goto error; - + p++; CONTINUATION_CHAR; TWO_REMAINING: @@ -96,16 +96,16 @@ avahi_utf8_valid (const char *str) CONTINUATION_CHAR; p++; CONTINUATION_CHAR; - + if ( (val < min)) goto error; if ( (!UNICODE_VALID(val))) goto error; - } - + } + continue; - + error: return NULL; } |