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