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