Lines Matching refs:old_locale
40 char *end, *old_locale; in read_double_locale() local
46 old_locale = iio_strdup(setlocale(LC_NUMERIC, NULL)); in read_double_locale()
47 if (!old_locale) in read_double_locale()
52 setlocale(LC_NUMERIC, old_locale); in read_double_locale()
53 free(old_locale); in read_double_locale()
65 char *old_locale = iio_strdup(setlocale(LC_NUMERIC, NULL)); in write_double_locale() local
66 if (!old_locale) in write_double_locale()
71 setlocale(LC_NUMERIC, old_locale); in write_double_locale()
72 free(old_locale); in write_double_locale()
109 locale_t old_locale, new_locale; in read_double_locale() local
115 old_locale = uselocale(new_locale); in read_double_locale()
118 uselocale(old_locale); in read_double_locale()
130 locale_t old_locale, new_locale; in write_double_locale() local
136 old_locale = uselocale(new_locale); in write_double_locale()
140 uselocale(old_locale); in write_double_locale()