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