Lines Matching refs:tmp_locale
134 struct __locale_t tmp_locale, *new_locale; in newlocale() local
138 tmp_locale = *__get_C_locale (); in newlocale()
166 strcpy (tmp_locale.categories[i], new_categories[i]); in newlocale()
169 tmp_locale.wctomb = base->wctomb; in newlocale()
170 tmp_locale.mbtowc = base->mbtowc; in newlocale()
171 tmp_locale.cjk_lang = base->cjk_lang; in newlocale()
172 tmp_locale.ctype_ptr = base->ctype_ptr; in newlocale()
178 tmp_locale.lc_cat[i].ptr = base->lc_cat[i].ptr; in newlocale()
179 tmp_locale.lc_cat[i].buf = (void *) -1; in newlocale()
182 strcpy (tmp_locale.ctype_codeset, base->ctype_codeset); in newlocale()
184 strcpy (tmp_locale.message_codeset, base->message_codeset); in newlocale()
195 else if (!__loadlocale (&tmp_locale, i, new_categories[i])) in newlocale()
213 if (tmp_locale.lc_cat[i].buf == (const void *) -1) in newlocale()
215 tmp_locale.lc_cat[i].buf = base->lc_cat[i].buf; in newlocale()
223 *new_locale = tmp_locale; in newlocale()
232 && tmp_locale.lc_cat[i].buf in newlocale()
233 && tmp_locale.lc_cat[i].buf != (const void *) -1) in newlocale()
235 free ((void *) tmp_locale.lc_cat[i].ptr); in newlocale()
236 free (tmp_locale.lc_cat[i].buf); in newlocale()