]>
Commit | Line | Data |
---|---|---|
2aa62f2b | 1 | /* $NetBSD: localedef.h,v 1.7 2005/11/29 03:12:16 christos Exp $ */\r |
2 | \r | |
3 | /*\r | |
4 | * Copyright (c) 1994 Winning Strategies, Inc.\r | |
5 | * All rights reserved.\r | |
6 | *\r | |
7 | * Redistribution and use in source and binary forms, with or without\r | |
8 | * modification, are permitted provided that the following conditions\r | |
9 | * are met:\r | |
10 | * 1. Redistributions of source code must retain the above copyright\r | |
11 | * notice, this list of conditions and the following disclaimer.\r | |
12 | * 2. Redistributions in binary form must reproduce the above copyright\r | |
13 | * notice, this list of conditions and the following disclaimer in the\r | |
14 | * documentation and/or other materials provided with the distribution.\r | |
15 | * 3. All advertising materials mentioning features or use of this software\r | |
16 | * must display the following acknowledgement:\r | |
17 | * This product includes software developed by Winning Strategies, Inc.\r | |
18 | * 4. The name of the author may not be used to endorse or promote products\r | |
19 | * derived from this software without specific prior written permission.\r | |
20 | *\r | |
21 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r | |
22 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r | |
23 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r | |
24 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r | |
25 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r | |
26 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r | |
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r | |
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r | |
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r | |
30 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r | |
31 | */\r | |
32 | \r | |
33 | #ifndef _SYS_LOCALEDEF_H_\r | |
34 | #define _SYS_LOCALEDEF_H_\r | |
35 | \r | |
36 | typedef struct {\r | |
37 | const char *yesexpr;\r | |
38 | const char *noexpr;\r | |
39 | const char *yesstr;\r | |
40 | const char *nostr;\r | |
41 | } _MessagesLocale;\r | |
42 | \r | |
43 | extern const _MessagesLocale *_CurrentMessagesLocale;\r | |
44 | extern const _MessagesLocale _DefaultMessagesLocale;\r | |
45 | \r | |
46 | \r | |
47 | typedef struct {\r | |
48 | const char *int_curr_symbol;\r | |
49 | const char *currency_symbol;\r | |
50 | const char *mon_decimal_point;\r | |
51 | const char *mon_thousands_sep;\r | |
52 | const char *mon_grouping;\r | |
53 | const char *positive_sign;\r | |
54 | const char *negative_sign;\r | |
55 | char int_frac_digits;\r | |
56 | char frac_digits;\r | |
57 | char p_cs_precedes;\r | |
58 | char p_sep_by_space;\r | |
59 | char n_cs_precedes;\r | |
60 | char n_sep_by_space;\r | |
61 | char p_sign_posn;\r | |
62 | char n_sign_posn;\r | |
63 | char int_p_cs_precedes;\r | |
64 | char int_n_cs_precedes;\r | |
65 | char int_p_sep_by_space;\r | |
66 | char int_n_sep_by_space;\r | |
67 | char int_p_sign_posn;\r | |
68 | char int_n_sign_posn;\r | |
69 | } _MonetaryLocale;\r | |
70 | \r | |
71 | extern const _MonetaryLocale *_CurrentMonetaryLocale;\r | |
72 | extern const _MonetaryLocale _DefaultMonetaryLocale;\r | |
73 | \r | |
74 | \r | |
75 | typedef struct {\r | |
76 | const char *decimal_point;\r | |
77 | const char *thousands_sep;\r | |
78 | const char *grouping;\r | |
79 | } _NumericLocale;\r | |
80 | \r | |
81 | extern const _NumericLocale *_CurrentNumericLocale;\r | |
82 | extern const _NumericLocale _DefaultNumericLocale;\r | |
83 | \r | |
84 | \r | |
85 | typedef struct {\r | |
86 | const char *abday[7];\r | |
87 | const char *day[7];\r | |
88 | const char *abmon[12];\r | |
89 | const char *mon[12];\r | |
90 | const char *am_pm[2];\r | |
91 | const char *d_t_fmt;\r | |
92 | const char *d_fmt;\r | |
93 | const char *t_fmt;\r | |
94 | const char *t_fmt_ampm;\r | |
95 | } _TimeLocale;\r | |
96 | \r | |
97 | extern const _TimeLocale *_CurrentTimeLocale;\r | |
98 | extern const _TimeLocale _DefaultTimeLocale;\r | |
99 | \r | |
100 | #endif /* !_SYS_LOCALEDEF_H_ */\r |