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