Rename utf8-ucs4-safe -> utf8-ucs4, u8_mbtouc_safe -> u8_mbtouc.
authorBruno Haible <bruno@clisp.org>
Sun, 28 Jan 2007 01:49:16 +0000 (01:49 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jan 2007 01:49:16 +0000 (01:49 +0000)
ChangeLog
lib/striconveh.c
lib/unistr.h
lib/unistr/u8-to-u16.c
lib/unistr/u8-to-u32.c
modules/striconveh
modules/unistr/u8-to-u16
modules/unistr/u8-to-u32

index 437cd5a..6872d5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2007-01-27  Bruno Haible  <bruno@clisp.org>
 
-       Rename utf8-ucs4-safe -> utf8-ucs4, utf8-ucs4 -> utf8-ucs4-unsafe,
-       u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe ->u8_mbtouc.
+       Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
+       u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
        * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
        * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
        * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
        * modules/striconveh: Update.
        * lib/linebreak.c: Update.
        * modules/linebreak: Update.
+       * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
+       * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
+       * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
+       * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
+       * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
+       * lib/unistr.h: Update.
+       * lib/striconveh.c: Update.
+       * modules/striconveh: Update.
+       * lib/unistr/u8-to-u16.c: Update.
+       * modules/unistr/u8-to-u16: Update.
+       * lib/unistr/u8-to-u32.c: Update.
+       * modules/unistr/u8-to-u32: Update.
 
 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
index 1324da5..56c0c04 100644 (file)
@@ -28,7 +28,7 @@
 
 #if HAVE_ICONV
 # include <iconv.h>
-# include "utf8-ucs4-safe.h"
+# include "utf8-ucs4.h"
 # include "ucs4-utf8.h"
 # include "unistr.h"
 #endif
@@ -481,7 +481,7 @@ mem_cd_iconveh_internal (const char *src, size_t srclen,
                    int n;
                    int m;
 
-                   n = u8_mbtouc_safe (&uc, (const uint8_t *) in1ptr, in1size);
+                   n = u8_mbtouc (&uc, (const uint8_t *) in1ptr, in1size);
                    if (uc == 0xfffd
                        && !(n >= 3
                             && (uint8_t)in1ptr[0] == 0xEF
index a67e593..72b928b 100644 (file)
@@ -174,12 +174,12 @@ u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n)
 # endif
 #endif
 
-#ifdef GNULIB_UNISTR_U8_MBTOUC_SAFE
+#ifdef GNULIB_UNISTR_U8_MBTOUC
 # if !HAVE_INLINE
 extern int
-       u8_mbtouc_safe (ucs4_t *puc, const uint8_t *s, size_t n);
+       u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n);
 # else
-#  include "utf8-ucs4-safe.h"
+#  include "utf8-ucs4.h"
 # endif
 #endif
 
index ac4211b..734c25b 100644 (file)
@@ -60,7 +60,7 @@ FUNC (const SRC_UNIT *s, size_t n, DST_UNIT *resultbuf, size_t *lengthp)
       int count;
 
       /* Fetch a Unicode character from the input string.  */
-      count = u8_mbtouc_safe (&uc, s, s_end - s);
+      count = u8_mbtouc (&uc, s, s_end - s);
       if (count < 0)
        {
          if (!(result == resultbuf || result == NULL))
index bd2a2f0..29dc620 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert UTF-8 string to UTF-32 string.
-   Copyright (C) 2002, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002.
 
    This program is free software; you can redistribute it and/or modify it
@@ -60,7 +60,7 @@ FUNC (const SRC_UNIT *s, size_t n, DST_UNIT *resultbuf, size_t *lengthp)
       int count;
 
       /* Fetch a Unicode character from the input string.  */
-      count = u8_mbtouc_safe (&uc, s, s_end - s);
+      count = u8_mbtouc (&uc, s, s_end - s);
       if (count < 0)
        {
          if (!(result == resultbuf || result == NULL))
index db375aa..6b93087 100644 (file)
@@ -8,7 +8,7 @@ lib/striconveh.c
 Depends-on:
 stdbool
 iconv
-utf8-ucs4-safe
+utf8-ucs4
 ucs4-utf8
 unistr/u8-prev
 unistr/u8-mbtouc-unsafe
index b50d919..79dfb44 100644 (file)
@@ -6,7 +6,7 @@ lib/unistr/u8-to-u16.c
 
 Depends-on:
 unistr/base
-unistr/u8-mbtouc-safe
+unistr/u8-mbtouc
 unistr/u16-uctomb
 
 configure.ac:
index be2e05a..7b3dcb5 100644 (file)
@@ -6,7 +6,7 @@ lib/unistr/u8-to-u32.c
 
 Depends-on:
 unistr/base
-unistr/u8-mbtouc-safe
+unistr/u8-mbtouc
 
 configure.ac: