Home
last modified time | relevance | path

Searched refs:lc_cat (Results 1 – 4 of 4) sorted by relevance

/picolibc-latest/newlib/libc/locale/
Dnewlocale.c178 tmp_locale.lc_cat[i].ptr = base->lc_cat[i].ptr; in newlocale()
179 tmp_locale.lc_cat[i].buf = (void *) -1; 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()
217 base->lc_cat[i].ptr = base->lc_cat[i].buf = NULL; 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()
Dduplocale.c97 if (locobj->lc_cat[i].buf) in duplocale()
101 tmp_locale.lc_cat[i].ptr = NULL; in duplocale()
102 tmp_locale.lc_cat[i].buf = NULL; in duplocale()
121 if (tmp_locale.lc_cat[i].buf) in duplocale()
123 free ((void *) tmp_locale.lc_cat[i].ptr); in duplocale()
124 free (tmp_locale.lc_cat[i].buf); in duplocale()
Dsetlocale.h189 struct __lc_cats lc_cat[_LC_LAST]; member
240 return (const struct lc_ctype_T *) (locale)->lc_cat[LC_CTYPE].ptr; in __get_ctype_locale()
247 _locale->lc_cat[LC_CTYPE].ptr; in __get_current_ctype_locale()
265 return (const struct lc_monetary_T *) (locale)->lc_cat[LC_MONETARY].ptr; in __get_monetary_locale()
272 _locale->lc_cat[LC_MONETARY].ptr; in __get_current_monetary_locale()
278 return (const struct lc_numeric_T *) (locale)->lc_cat[LC_NUMERIC].ptr; in __get_numeric_locale()
285 _locale->lc_cat[LC_NUMERIC].ptr; in __get_current_numeric_locale()
291 return (const struct lc_time_T *) (locale)->lc_cat[LC_TIME].ptr; in __get_time_locale()
298 _locale->lc_cat[LC_TIME].ptr; in __get_current_time_locale()
304 return (const struct lc_messages_T *) (locale)->lc_cat[_LC_MESSAGES].ptr; in __get_messages_locale()
[all …]
Dfreelocale.c79 if (locobj->lc_cat[i].buf) in freelocale()
81 free ((void *) locobj->lc_cat[i].ptr); in freelocale()
82 free (locobj->lc_cat[i].buf); in freelocale()