X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Funistr.h;h=5643ea72b42b26d7ac02916e074dae8ba62b8663;hb=39bc7a80b6719b1c7d0f8fb1b01380649cb8e358;hp=e871cb1b9911226d460bd7a5478a915bf982ea5e;hpb=5624c923456da44a71d333fd7346eb69b888db30;p=gnulib.git diff --git a/lib/unistr.h b/lib/unistr.h index e871cb1b9..5643ea72b 100644 --- a/lib/unistr.h +++ b/lib/unistr.h @@ -132,31 +132,31 @@ extern int /* The variants with _safe suffix are safe, even if the library is compiled without --enable-safety. */ -#ifdef GNULIB_UNISTR_U8_MBTOUC +#ifdef GNULIB_UNISTR_U8_MBTOUC_UNSAFE # if !HAVE_INLINE extern int - u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n); + u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n); # else -# include "utf8-ucs4.h" +# include "utf8-ucs4-unsafe.h" # endif #endif -#ifdef GNULIB_UNISTR_U16_MBTOUC +#ifdef GNULIB_UNISTR_U16_MBTOUC_UNSAFE # if !HAVE_INLINE extern int - u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n); + u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n); # else -# include "utf16-ucs4.h" +# include "utf16-ucs4-unsafe.h" # endif #endif -#ifdef GNULIB_UNISTR_U32_MBTOUC +#ifdef GNULIB_UNISTR_U32_MBTOUC_UNSAFE # if !HAVE_INLINE extern int - u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n); + u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n); # else static inline int -u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n) +u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n) { uint32_t c = *s; @@ -174,31 +174,31 @@ 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 -#ifdef GNULIB_UNISTR_U16_MBTOUC_SAFE +#ifdef GNULIB_UNISTR_U16_MBTOUC # if !HAVE_INLINE extern int - u16_mbtouc_safe (ucs4_t *puc, const uint16_t *s, size_t n); + u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n); # else -# include "utf16-ucs4-safe.h" +# include "utf16-ucs4.h" # endif #endif -#ifdef GNULIB_UNISTR_U32_MBTOUC_SAFE +#ifdef GNULIB_UNISTR_U32_MBTOUC # if !HAVE_INLINE extern int - u32_mbtouc_safe (ucs4_t *puc, const uint32_t *s, size_t n); + u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n); # else static inline int -u32_mbtouc_safe (ucs4_t *puc, const uint32_t *s, size_t n) +u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n) { uint32_t c = *s;