From a89a3dab8050c1dbf0c125d44d45ff67b43703cb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 10 Aug 2002 23:55:20 +0000 Subject: 2002-08-10 Roland McGrath * locale/loadarchive.c (_nl_archive_subfreeres): New function. * locale/localeinfo.h: Declare it. * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the current locale if it's not in the file list. Call _nl_archive_subfreeres. * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit, towlower, towupper): Add prototypes here too. Add libc_hidden_proto. * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit, towlower, towupper): Add libc_hidden_weak. --- locale/localeinfo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'locale/localeinfo.h') diff --git a/locale/localeinfo.h b/locale/localeinfo.h index 31de4d0974..bcb5805854 100644 --- a/locale/localeinfo.h +++ b/locale/localeinfo.h @@ -261,6 +261,9 @@ extern struct locale_data *_nl_load_locale_from_archive (int category, const char **namep) internal_function attribute_hidden; +/* Subroutine of setlocale's __libc_subfreeres hook. */ +extern void _nl_archive_subfrees (void) attribute_hidden; + /* Validate the contents of a locale file and set up the in-core data structure to point into the data. This leaves the `alloc' and `name' fields uninitialized, for the caller to fill in. -- cgit 1.4.1