50f89d
Short description: Allow access to internal locale archive functions.
50f89d
Author(s): Fedora glibc team <glibc@lists.fedoraproject.org>
50f89d
Origin: PATCH
50f89d
Upstream status: not-needed
50f89d
50f89d
This is a part of commit glibc-2.3.3-1492-ga891c7b,
50f89d
needed for fedora/build-locale-archive.c only.
50f89d
50f89d
2007-04-16  Jakub Jelinek  <jakub@redhat.com>
50f89d
50f89d
	* locale/programs/locarchive.c (add_alias, insert_name): Remove static.
50f89d
50f89d
diff -Nrup a/locale/programs/locarchive.c b/locale/programs/locarchive.c
50f89d
--- a/locale/programs/locarchive.c	2012-06-05 07:42:49.000000000 -0600
50f89d
+++ b/locale/programs/locarchive.c	2012-06-07 12:15:21.585319540 -0600
50f89d
@@ -252,9 +252,9 @@ oldlocrecentcmp (const void *a, const vo
50f89d
 /* forward decls for below */
50f89d
 static uint32_t add_locale (struct locarhandle *ah, const char *name,
50f89d
 			    locale_data_t data, bool replace);
50f89d
-static void add_alias (struct locarhandle *ah, const char *alias,
50f89d
-		       bool replace, const char *oldname,
50f89d
-		       uint32_t *locrec_offset_p);
50f89d
+void add_alias (struct locarhandle *ah, const char *alias,
50f89d
+		bool replace, const char *oldname,
50f89d
+		uint32_t *locrec_offset_p);
50f89d
 
50f89d
 
50f89d
 static bool
50f89d
@@ -635,7 +635,7 @@ close_archive (struct locarhandle *ah)
50f89d
 #include "../../intl/explodename.c"
50f89d
 #include "../../intl/l10nflist.c"
50f89d
 
50f89d
-static struct namehashent *
50f89d
+struct namehashent *
50f89d
 insert_name (struct locarhandle *ah,
50f89d
 	     const char *name, size_t name_len, bool replace)
50f89d
 {
50f89d
@@ -693,7 +693,7 @@ insert_name (struct locarhandle *ah,
50f89d
   return &namehashtab[idx];
50f89d
 }
50f89d
 
50f89d
-static void
50f89d
+void
50f89d
 add_alias (struct locarhandle *ah, const char *alias, bool replace,
50f89d
 	   const char *oldname, uint32_t *locrec_offset_p)
50f89d
 {