Rev 4874 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4874 | Rev 4921 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | locale.h |
2 | locale.h |
3 | Values appropriate for the formatting of monetary and other |
3 | Values appropriate for the formatting of monetary and other |
4 | numberic quantities. |
4 | numberic quantities. |
5 | */ |
5 | */ |
6 | 6 | ||
7 | #ifndef _LOCALE_H_ |
7 | #ifndef _LOCALE_H_ |
8 | #define _LOCALE_H_ |
8 | #define _LOCALE_H_ |
9 | 9 | ||
10 | #include "_ansi.h" |
10 | #include "_ansi.h" |
11 | 11 | ||
12 | #ifndef NULL |
12 | #define __need_NULL |
13 | #define NULL 0 |
- | |
14 | #endif |
13 | #include |
15 | 14 | ||
16 | #define LC_ALL 0 |
15 | #define LC_ALL 0 |
17 | #define LC_COLLATE 1 |
16 | #define LC_COLLATE 1 |
18 | #define LC_CTYPE 2 |
17 | #define LC_CTYPE 2 |
19 | #define LC_MONETARY 3 |
18 | #define LC_MONETARY 3 |
20 | #define LC_NUMERIC 4 |
19 | #define LC_NUMERIC 4 |
21 | #define LC_TIME 5 |
20 | #define LC_TIME 5 |
22 | #define LC_MESSAGES 6 |
21 | #define LC_MESSAGES 6 |
23 | 22 | ||
24 | _BEGIN_STD_C |
23 | _BEGIN_STD_C |
25 | 24 | ||
26 | struct lconv |
25 | struct lconv |
27 | { |
26 | { |
28 | char *decimal_point; |
27 | char *decimal_point; |
29 | char *thousands_sep; |
28 | char *thousands_sep; |
30 | char *grouping; |
29 | char *grouping; |
31 | char *int_curr_symbol; |
30 | char *int_curr_symbol; |
32 | char *currency_symbol; |
31 | char *currency_symbol; |
33 | char *mon_decimal_point; |
32 | char *mon_decimal_point; |
34 | char *mon_thousands_sep; |
33 | char *mon_thousands_sep; |
35 | char *mon_grouping; |
34 | char *mon_grouping; |
36 | char *positive_sign; |
35 | char *positive_sign; |
37 | char *negative_sign; |
36 | char *negative_sign; |
38 | char int_frac_digits; |
37 | char int_frac_digits; |
39 | char frac_digits; |
38 | char frac_digits; |
40 | char p_cs_precedes; |
39 | char p_cs_precedes; |
41 | char p_sep_by_space; |
40 | char p_sep_by_space; |
42 | char n_cs_precedes; |
41 | char n_cs_precedes; |
43 | char n_sep_by_space; |
42 | char n_sep_by_space; |
44 | char p_sign_posn; |
43 | char p_sign_posn; |
45 | char n_sign_posn; |
44 | char n_sign_posn; |
46 | char int_n_cs_precedes; |
45 | char int_n_cs_precedes; |
47 | char int_n_sep_by_space; |
46 | char int_n_sep_by_space; |
48 | char int_n_sign_posn; |
47 | char int_n_sign_posn; |
49 | char int_p_cs_precedes; |
48 | char int_p_cs_precedes; |
50 | char int_p_sep_by_space; |
49 | char int_p_sep_by_space; |
51 | char int_p_sign_posn; |
50 | char int_p_sign_posn; |
52 | }; |
51 | }; |
53 | 52 | ||
54 | #ifndef _REENT_ONLY |
53 | #ifndef _REENT_ONLY |
55 | char *_EXFUN(setlocale,(int category, const char *locale)); |
54 | char *_EXFUN(setlocale,(int category, const char *locale)); |
56 | struct lconv *_EXFUN(localeconv,(void)); |
55 | struct lconv *_EXFUN(localeconv,(void)); |
57 | #endif |
56 | #endif |
58 | 57 | ||
59 | struct _reent; |
58 | struct _reent; |
60 | char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale)); |
59 | char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale)); |
61 | struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); |
60 | struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); |
62 | 61 | ||
63 | _END_STD_C |
62 | _END_STD_C |
64 | 63 | ||
65 | #endif /* _LOCALE_H_ */ |
64 | #endif /* _LOCALE_H_ */ |