Lines Matching refs:new
196 locale_t new = calloc(sizeof(struct _xlocale), 1); in alloc_locale() local
198 if (new == NULL) in alloc_locale()
201 new->header.destructor = destruct_locale; in alloc_locale()
202 new->monetary_locale_changed = 1; in alloc_locale()
203 new->numeric_locale_changed = 1; in alloc_locale()
204 return (new); in alloc_locale()
208 copyflags(locale_t new, locale_t old) in copyflags() argument
210 new->using_monetary_locale = old->using_monetary_locale; in copyflags()
211 new->using_numeric_locale = old->using_numeric_locale; in copyflags()
212 new->using_time_locale = old->using_time_locale; in copyflags()
213 new->using_messages_locale = old->using_messages_locale; in copyflags()
217 dupcomponent(int type, locale_t base, locale_t new) in dupcomponent() argument
224 new->components[type] = constructors[type](src->locale, new); in dupcomponent()
225 if (new->components[type]) { in dupcomponent()
226 strncpy(new->components[type]->locale, src->locale, in dupcomponent()
228 strncpy(new->components[type]->version, src->version, in dupcomponent()
232 new->components[type] = xlocale_retain(base->components[type]); in dupcomponent()
240 return (0 != new->components[type]); in dupcomponent()
257 locale_t new = alloc_locale(); in newlocale() local
258 if (NULL == new) { in newlocale()
266 copyflags(new, base); in newlocale()
279 new->components[type] = in newlocale()
280 constructors[type](realLocale, new); in newlocale()
281 if (new->components[type]) { in newlocale()
282 strncpy(new->components[type]->locale, in newlocale()
289 if (!dupcomponent(type, base, new)) { in newlocale()
297 xlocale_release(new); in newlocale()
298 new = NULL; in newlocale()
303 return (new); in newlocale()
309 locale_t new = alloc_locale(); in duplocale() local
312 if (NULL == new) { in duplocale()
319 copyflags(new, base); in duplocale()
322 dupcomponent(type, base, new); in duplocale()
325 return (new); in duplocale()