]>
Commit | Line | Data |
---|---|---|
2aa62f2b | 1 | /* $NetBSD: rune.h,v 1.11 2006/02/16 19:19:49 tnozaki Exp $ */\r |
2 | \r | |
3 | /*-\r | |
4 | * Copyright (c) 1993\r | |
5 | * The Regents of the University of California. All rights reserved.\r | |
6 | *\r | |
7 | * This code is derived from software contributed to Berkeley by\r | |
8 | * Paul Borman at Krystal Technologies.\r | |
9 | *\r | |
10 | * Redistribution and use in source and binary forms, with or without\r | |
11 | * modification, are permitted provided that the following conditions\r | |
12 | * are met:\r | |
13 | * 1. Redistributions of source code must retain the above copyright\r | |
14 | * notice, this list of conditions and the following disclaimer.\r | |
15 | * 2. Redistributions in binary form must reproduce the above copyright\r | |
16 | * notice, this list of conditions and the following disclaimer in the\r | |
17 | * documentation and/or other materials provided with the distribution.\r | |
18 | * 3. Neither the name of the University nor the names of its contributors\r | |
19 | * may be used to endorse or promote products derived from this software\r | |
20 | * without specific prior written permission.\r | |
21 | *\r | |
22 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r | |
23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r | |
24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r | |
25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r | |
26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r | |
27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r | |
28 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r | |
29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r | |
30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r | |
31 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r | |
32 | * SUCH DAMAGE.\r | |
33 | *\r | |
34 | * @(#)rune.h 8.1 (Berkeley) 6/27/93\r | |
35 | */\r | |
36 | #ifndef _RUNE_H_\r | |
37 | #define _RUNE_H_\r | |
38 | \r | |
39 | #include <LibConfig.h>\r | |
40 | \r | |
41 | #include <stdio.h>\r | |
42 | #include <wchar.h>\r | |
43 | #include "runetype.h"\r | |
44 | \r | |
45 | /*\r | |
46 | * map _RTYPE_x to _CTYPE_x\r | |
47 | *\r | |
48 | * XXX: these should be defined in ctype.h and used in isxxx macros.\r | |
49 | * (note: current isxxx macros use "old" NetBSD masks and\r | |
50 | * _CTYPE_x are not public.)\r | |
51 | */\r | |
52 | #define _CTYPE_A _RUNETYPE_A\r | |
53 | #define _CTYPE_C _RUNETYPE_C\r | |
54 | #define _CTYPE_D _RUNETYPE_D\r | |
55 | #define _CTYPE_G _RUNETYPE_G\r | |
56 | #define _CTYPE_L _RUNETYPE_L\r | |
57 | #define _CTYPE_P _RUNETYPE_P\r | |
58 | #define _CTYPE_S _RUNETYPE_S\r | |
59 | #define _CTYPE_U _RUNETYPE_U\r | |
60 | #define _CTYPE_X _RUNETYPE_X\r | |
61 | #define _CTYPE_B _RUNETYPE_B\r | |
62 | #define _CTYPE_R _RUNETYPE_R\r | |
63 | #define _CTYPE_I _RUNETYPE_I\r | |
64 | #define _CTYPE_T _RUNETYPE_T\r | |
65 | #define _CTYPE_Q _RUNETYPE_Q\r | |
66 | #define _CTYPE_SWM _RUNETYPE_SWM\r | |
67 | #define _CTYPE_SWS _RUNETYPE_SWS\r | |
68 | #define _CTYPE_SW0 _RUNETYPE_SW0\r | |
69 | #define _CTYPE_SW1 _RUNETYPE_SW1\r | |
70 | #define _CTYPE_SW2 _RUNETYPE_SW2\r | |
71 | #define _CTYPE_SW3 _RUNETYPE_SW3\r | |
72 | \r | |
73 | /*\r | |
74 | * Other namespace conversion.\r | |
75 | */\r | |
76 | \r | |
77 | #define rune_t __nbrune_t\r | |
78 | #define _RUNE_ISCACHED _NB_RUNE_ISCACHED\r | |
79 | #define _CACHED_RUNES _NB_CACHED_RUNES\r | |
80 | #define _DEFAULT_INVALID_RUNE _NB_DEFAULT_INVALID_RUNE\r | |
81 | #define _RuneEntry _NBRuneEntry\r | |
82 | #define _RuneRange _NBRuneRange\r | |
83 | #define _RuneLocale _NBRuneLocale\r | |
84 | #define _RUNE_MAGIC_1 _NB_RUNE_MAGIC_1\r | |
85 | #define _RUNE_MODULE_1 _NB_RUNE_MODULE_1\r | |
86 | #define _RUNE_CODESET _NB_RUNE_CODESET\r | |
87 | \r | |
88 | /*\r | |
89 | * global variables\r | |
90 | */\r | |
91 | extern size_t __mb_len_max_runtime;\r | |
92 | #define __MB_LEN_MAX_RUNTIME __mb_len_max_runtime\r | |
93 | \r | |
94 | extern _RuneLocale _DefaultRuneLocale;\r | |
95 | extern _RuneLocale *_CurrentRuneLocale;\r | |
96 | extern const char *_PathLocale;\r | |
97 | \r | |
98 | #define _LOCALE_ALIAS_NAME "locale.alias"\r | |
99 | \r | |
100 | #endif /*! _RUNE_H_ */\r |