]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
iconv: Remove public declaration of __gconv_transliterate
authorFlorian Weimer <fweimer@redhat.com>
Wed, 15 May 2019 05:16:47 +0000 (07:16 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 15 May 2019 05:16:47 +0000 (07:16 +0200)
Commit ba7b4d294b01870ce3497971e9d07ee261cdc540 ("Complete the
removal of __gconv_translit_find") added a declaration of the
GLIBC_PRIVATE function, __gconv_transliterate, to the installed
header <gconv.h>.  It should have been added to the internal
<gconv_int.h> header.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
iconv/gconv.h
iconv/gconv_int.h
iconv/loop.c
iconv/skeleton.c

index cfdfcd57b704609c85360437dd228f61922714eb..4b4fac475526596636c0474e5c81d6aa14c991a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-05-15  Florian Weimer  <fweimer@redhat.com>
+
+       * iconv/gconv.h (__gconv_transliterate): Move declaration …
+       * iconv/gconv_int.h (__gconv_transliterate): … here.
+       * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
+       * iconv/skeleton.c: Likewise.
+
 2019-05-14  Florian Weimer  <fweimer@redhat.com>
 
        Linux: Add the tgkill function.
index 12fd775604abeeeb49391b9a85094ccc36c6b64c..5ad26c06ace9ac192264590f82cdd00f9ed001e4 100644 (file)
@@ -142,13 +142,4 @@ typedef struct __gconv_info
   __extension__ struct __gconv_step_data __data[0];
 } *__gconv_t;
 
-/* Transliteration using the locale's data.  */
-extern int __gconv_transliterate (struct __gconv_step *step,
-                                 struct __gconv_step_data *step_data,
-                                 const unsigned char *inbufstart,
-                                 const unsigned char **inbufp,
-                                 const unsigned char *inbufend,
-                                 unsigned char **outbufstart,
-                                 size_t *irreversible);
-
 #endif /* gconv.h */
index 4635bee54dc4b1c8f4b3a2006fc1b1f3bd138372..ea41d6feaaf4f83d3e48fc73b3c125ae1c8e6009 100644 (file)
@@ -223,6 +223,14 @@ extern void __gconv_get_builtin_trans (const char *name,
                                       struct __gconv_step *step)
      attribute_hidden;
 
+/* Transliteration using the locale's data.  */
+extern int __gconv_transliterate (struct __gconv_step *step,
+                                  struct __gconv_step_data *step_data,
+                                  const unsigned char *inbufstart,
+                                  const unsigned char **inbufp,
+                                  const unsigned char *inbufend,
+                                  unsigned char **outbufstart,
+                                  size_t *irreversible);
 libc_hidden_proto (__gconv_transliterate)
 
 /* If NAME is an codeset alias expand it.  */
index 316bbf62b7b78d718a5f3aabfe31490258400699..fa98c1a52190a5a9b2ec76e38009008115e211ec 100644 (file)
@@ -49,7 +49,7 @@
 
 #include <assert.h>
 #include <endian.h>
-#include <gconv.h>
+#include <iconv/gconv_int.h>
 #include <stdint.h>
 #include <string.h>
 #include <wchar.h>
index d98a78acc216e702422fe9df3d57a2621871d5ce..cc39fdcc70475cffd77d7074d26b504ec09f6af5 100644 (file)
  */
 
 #include <assert.h>
-#include <gconv.h>
+#include <iconv/gconv_int.h>
 #include <string.h>
 #define __need_size_t
 #define __need_NULL