X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Funicode.h;h=79934540c586adefee3459b7dc1e1d24a44ff9d8;hb=a0040bd045e62e1f47852b1e1285fc0f0b34f78d;hp=c957c7971d1f162a590d457b9999d9c6c0b8d77b;hpb=683e2e005e38c27920d295abd00525e9fe394c2d;p=libucw.git diff --git a/lib/unicode.h b/lib/unicode.h index c957c797..79934540 100644 --- a/lib/unicode.h +++ b/lib/unicode.h @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Unicode Characters + * UCW Library -- Unicode Characters * * (c) 1997--2004 Martin Mares * (c) 2004 Robert Spalek @@ -8,8 +8,8 @@ * of the GNU Lesser General Public License. */ -#ifndef _UNICODE_H -#define _UNICODE_H +#ifndef _UCW_UNICODE_H +#define _UCW_UNICODE_H /* Macros for handling UTF-8 */ @@ -71,6 +71,7 @@ put1: *p++ = 0x80 | (u & 0x3f); } else ASSERT(0); + return p; } #define UTF8_GET_NEXT if (unlikely((*p & 0xc0) != 0x80)) goto bad; u = (u << 6) | (*p++ & 0x3f)