Changeset 609 for branches/GNU/src/binutils/intl/finddomain.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/intl/finddomain.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* Handle list of needed message catalogs 2 Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.2 Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. 3 3 Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. 4 4 … … 71 71 established bindings. */ 72 72 struct loaded_l10nfile * 73 internal_function 73 74 _nl_find_domain (dirname, locale, domainname) 74 75 const char *dirname; … … 96 97 language[_territory][+audience][+special][,[sponsor][_revision]] 97 98 98 Beside the first all of them are allowed to be missing. If the99 full specified locale is not found, the less specific one are100 looked for. The various part will be stripped of according to99 Beside the first part all of them are allowed to be missing. If 100 the full specified locale is not found, the less specific one are 101 looked for. The various parts will be stripped off according to 101 102 the following order: 102 103 (1) revision … … 143 144 if (alias_value != NULL) 144 145 { 146 #if defined _LIBC || defined HAVE_STRDUP 147 locale = strdup (alias_value); 148 if (locale == NULL) 149 return NULL; 150 #else 145 151 size_t len = strlen (alias_value) + 1; 146 152 locale = (char *) malloc (len); … … 149 155 150 156 memcpy (locale, alias_value, len); 157 #endif 151 158 } 152 159 … … 188 195 return retval; 189 196 } 197 198 199 #ifdef _LIBC 200 static void __attribute__ ((unused)) 201 free_mem (void) 202 { 203 struct loaded_l10nfile *runp = _nl_loaded_domains; 204 205 while (runp != NULL) 206 { 207 struct loaded_l10nfile *here = runp; 208 if (runp->data != NULL) 209 _nl_unload_domain ((struct loaded_domain *) runp->data); 210 runp = runp->next; 211 free (here); 212 } 213 } 214 215 text_set_element (__libc_subfreeres, free_mem); 216 #endif -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.