Define and declare u{8,16}_uctomb_aux also if !HAVE_INLINE.
authorBruno Haible <bruno@clisp.org>
Sun, 28 Oct 2007 20:45:28 +0000 (21:45 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Oct 2007 20:45:28 +0000 (21:45 +0100)
ChangeLog
lib/unistr.h
lib/unistr/u16-uctomb-aux.c
lib/unistr/u8-uctomb-aux.c

index b60f305f3077f9fcdb5b7fae373934bb61b4a783..47e858b3b367993cb3f0684b498356b19d8209eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
+       (u16_uctomb_aux): Likewise.
+       * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
+       !HAVE_INLINE.
+       * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
+
 2007-10-28  Bruno Haible  <bruno@clisp.org>
 
        * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
index a645292c064a96726daa788a06a33b2f50a6ed9e..ae247a5ea60ad7672608251c4064e3ed7c7c2a91 100644 (file)
@@ -297,12 +297,13 @@ extern int
    must be specified.  */
 
 #ifdef GNULIB_UNISTR_U8_UCTOMB
+/* Auxiliary function, also used by u8_chr, u8_strchr, u8_strrchr.  */
+extern int
+       u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n);
 # if !HAVE_INLINE
 extern int
        u8_uctomb (uint8_t *s, ucs4_t uc, int n);
 # else
-extern int
-       u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n);
 static inline int
 u8_uctomb (uint8_t *s, ucs4_t uc, int n)
 {
@@ -318,12 +319,13 @@ u8_uctomb (uint8_t *s, ucs4_t uc, int n)
 #endif
 
 #ifdef GNULIB_UNISTR_U16_UCTOMB
+/* Auxiliary function, also used by u16_chr, u16_strchr, u16_strrchr.  */
+extern int
+       u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n);
 # if !HAVE_INLINE
 extern int
        u16_uctomb (uint16_t *s, ucs4_t uc, int n);
 # else
-extern int
-       u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n);
 static inline int
 u16_uctomb (uint16_t *s, ucs4_t uc, int n)
 {
index 1ad86aa084a999ead4a7ea94721ca20726f2ea60..384452ba1dadbf4c8daad8f616ac5483c9d588e9 100644 (file)
@@ -20,8 +20,6 @@
 /* Specification.  */
 #include "unistr.h"
 
-#if HAVE_INLINE
-
 int
 u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n)
 {
@@ -58,5 +56,3 @@ u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n)
     }
   return -2;
 }
-
-#endif
index f38bc23aa50bf97181ab280389424bbb7b7255cf..c42fa5015314ec991319f990e0a60421454a50f2 100644 (file)
@@ -20,8 +20,6 @@
 /* Specification.  */
 #include "unistr.h"
 
-#if HAVE_INLINE
-
 int
 u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n)
 {
@@ -69,5 +67,3 @@ u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n)
     }
   return count;
 }
-
-#endif