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