]> mj.ucw.cz Git - libucw.git/blobdiff - lib/unicode.h
Empty final bucket should be turned into a file as well.
[libucw.git] / lib / unicode.h
index c957c7971d1f162a590d457b9999d9c6c0b8d77b..79934540c586adefee3459b7dc1e1d24a44ff9d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Unicode Characters
+ *     UCW Library -- Unicode Characters
  *
  *     (c) 1997--2004 Martin Mares <mj@ucw.cz>
  *     (c) 2004 Robert Spalek <robert@ucw.cz>
@@ -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)