81 */
82
83 typedef struct locdata *(*loadfn_t)(const char *);
84
85 static const loadfn_t loaders[LC_ALL] = {
86 __lc_ctype_load,
87 __lc_numeric_load,
88 __lc_time_load,
89 __lc_collate_load,
90 __lc_monetary_load,
91 __lc_messages_load,
92 };
93
94 extern struct lc_monetary lc_monetary_posix;
95 extern struct lc_numeric lc_numeric_posix;
96 extern struct lc_messages lc_messages_posix;
97 extern struct lc_time lc_time_posix;
98 extern struct lc_ctype lc_ctype_posix;
99 extern struct lc_collate lc_collate_posix;
100
101 static struct locale posix_locale = {
102 /* locdata */
103 .locdata = {
104 &__posix_ctype_locdata,
105 &__posix_numeric_locdata,
106 &__posix_time_locdata,
107 &__posix_collate_locdata,
108 &__posix_monetary_locdata,
109 &__posix_messages_locdata,
110 },
111 .locname = "C",
112 .ctype = &lc_ctype_posix,
113 .numeric = &lc_numeric_posix,
114 .collate = &lc_collate_posix,
115 .monetary = &lc_monetary_posix,
116 .messages = &lc_messages_posix,
117 .time = &lc_time_posix,
118 .runelocale = &_DefaultRuneLocale,
119 };
120
121 locale_t ___global_locale = &posix_locale;
|
81 */
82
83 typedef struct locdata *(*loadfn_t)(const char *);
84
85 static const loadfn_t loaders[LC_ALL] = {
86 __lc_ctype_load,
87 __lc_numeric_load,
88 __lc_time_load,
89 __lc_collate_load,
90 __lc_monetary_load,
91 __lc_messages_load,
92 };
93
94 extern struct lc_monetary lc_monetary_posix;
95 extern struct lc_numeric lc_numeric_posix;
96 extern struct lc_messages lc_messages_posix;
97 extern struct lc_time lc_time_posix;
98 extern struct lc_ctype lc_ctype_posix;
99 extern struct lc_collate lc_collate_posix;
100
101 static struct _locale posix_locale = {
102 /* locdata */
103 .locdata = {
104 &__posix_ctype_locdata,
105 &__posix_numeric_locdata,
106 &__posix_time_locdata,
107 &__posix_collate_locdata,
108 &__posix_monetary_locdata,
109 &__posix_messages_locdata,
110 },
111 .locname = "C",
112 .ctype = &lc_ctype_posix,
113 .numeric = &lc_numeric_posix,
114 .collate = &lc_collate_posix,
115 .monetary = &lc_monetary_posix,
116 .messages = &lc_messages_posix,
117 .time = &lc_time_posix,
118 .runelocale = &_DefaultRuneLocale,
119 };
120
121 locale_t ___global_locale = &posix_locale;
|