Lines Matching defs:type
188 for (int type=0 ; type<XLC_LAST ; type++) {
189 if (loc->components[type]) {
190 xlocale_release(loc->components[type]);
221 static int dupcomponent(int type, locale_t base, locale_t new)
225 struct xlocale_component *src = base->components[type];
228 new->components[type] = constructors[type](src->locale, new);
229 if (new->components[type]) {
230 strncpy(new->components[type]->locale, src->locale,
233 } else if (base->components[type]) {
234 new->components[type] = xlocale_retain(base->components[type]);
242 return (0 != new->components[type]);
252 int type;
273 for (type=0 ; type<XLC_LAST ; type++) {
276 realLocale = __get_locale_env(type);
278 new->components[type] =
279 constructors[type](realLocale, new);
280 if (new->components[type]) {
281 strncpy(new->components[type]->locale,
288 if (!dupcomponent(type, base, new)) {
306 int type;
317 for (type=0 ; type<XLC_LAST ; type++) {
318 dupcomponent(type, base, new);
349 int type = ffs(mask) - 1;
351 if (type >= XLC_LAST)
353 if (loc->components[type])
354 return (loc->components[type]->locale);