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