diff options
author | Bruno Haible <bruno@clisp.org> | 2005-05-20 10:01:05 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:34 +0200 |
commit | bdd802cf0cfbed08a91a0aadbd01a5c4a854298a (patch) | |
tree | e039c80fdb033a4b5429d597627bc649e35e275e /gettext-runtime | |
parent | 11423bef627183074c3752172b79305eba434c0e (diff) | |
download | external_gettext-bdd802cf0cfbed08a91a0aadbd01a5c4a854298a.zip external_gettext-bdd802cf0cfbed08a91a0aadbd01a5c4a854298a.tar.gz external_gettext-bdd802cf0cfbed08a91a0aadbd01a5c4a854298a.tar.bz2 |
glibc 2004-08-06 Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'gettext-runtime')
-rw-r--r-- | gettext-runtime/intl/ChangeLog | 9 | ||||
-rw-r--r-- | gettext-runtime/intl/finddomain.c | 7 | ||||
-rw-r--r-- | gettext-runtime/intl/gettextP.h | 8 | ||||
-rw-r--r-- | gettext-runtime/intl/loadmsgcat.c | 2 |
4 files changed, 18 insertions, 8 deletions
diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index 4dc5f45..646440f 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,12 @@ +2004-08-06 Jakub Jelinek <jakub@redhat.com> + + * finddomain.c (free_mem): Rename to... + (_nl_finddomain_subfreeres): ... this. Add __libc_freeres_fn_section. + * loadmsgcat.c (_nl_unload_domain): Add __libc_freeres_fn_section. + * gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC. + Add attribute_hidden. + (_nl_findomain_subfreeres): New prototype. + 2005-05-05 Bruno Haible <bruno@clisp.org> * dcigettext.c (_nl_find_msg) [_LIBC]: Update norm_add_slashes call. diff --git a/gettext-runtime/intl/finddomain.c b/gettext-runtime/intl/finddomain.c index 4992a8c..7ecd404 100644 --- a/gettext-runtime/intl/finddomain.c +++ b/gettext-runtime/intl/finddomain.c @@ -1,5 +1,5 @@ /* Handle list of needed message catalogs - Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000-2001, 2003-2004 Free Software Foundation, Inc. Written by Ulrich Drepper <drepper@gnu.org>, 1995. This program is free software; you can redistribute it and/or modify it @@ -175,7 +175,10 @@ _nl_find_domain (const char *dirname, char *locale, #ifdef _LIBC -libc_freeres_fn (free_mem) +/* This is called from iconv/gconv_db.c's free_mem, as locales must + be freed before freeing gconv steps arrays. */ +void __libc_freeres_fn_section +_nl_finddomain_subfreeres () { struct loaded_l10nfile *runp = _nl_loaded_domains; diff --git a/gettext-runtime/intl/gettextP.h b/gettext-runtime/intl/gettextP.h index 6be4646..856367e 100644 --- a/gettext-runtime/intl/gettextP.h +++ b/gettext-runtime/intl/gettextP.h @@ -132,8 +132,6 @@ struct loaded_domain /* 1 if the hash table uses a different endianness than this machine. */ int must_swap_hash_tab; - int codeset_cntr; - /* Cache of charset conversions of the translated strings. */ struct converted_domain *conversions; size_t nconversions; @@ -156,7 +154,6 @@ struct binding { struct binding *next; char *dirname; - int codeset_cntr; /* Incremented each time codeset changes. */ char *codeset; char domainname[ZERO]; }; @@ -180,8 +177,6 @@ struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale, void _nl_load_domain (struct loaded_l10nfile *__domain, struct binding *__domainbinding) internal_function; -void _nl_unload_domain (struct loaded_domain *__domain) - internal_function; char *_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, @@ -210,6 +205,9 @@ extern char *__bindtextdomain (const char *__domainname, const char *__dirname); extern char *__bind_textdomain_codeset (const char *__domainname, const char *__codeset); +extern void _nl_finddomain_subfreeres (void) attribute_hidden; +extern void _nl_unload_domain (struct loaded_domain *__domain) + internal_function attribute_hidden; #else /* Declare the exported libintl_* functions, in a way that allows us to call them under their real name. */ diff --git a/gettext-runtime/intl/loadmsgcat.c b/gettext-runtime/intl/loadmsgcat.c index 9569aa8..c68a5a1 100644 --- a/gettext-runtime/intl/loadmsgcat.c +++ b/gettext-runtime/intl/loadmsgcat.c @@ -1262,7 +1262,7 @@ _nl_load_domain (struct loaded_l10nfile *domain_file, #ifdef _LIBC void -internal_function +internal_function __libc_freeres_fn_section _nl_unload_domain (struct loaded_domain *domain) { size_t i; |