xref: /minix3/usr.bin/mklocale/ldef.h (revision 36dcc4a4a93f782ada76dce3d52fbeab0e063cf1)
1*36dcc4a4SLionel Sambuc /*	$NetBSD: ldef.h,v 1.8 2010/05/22 18:15:21 tnozaki Exp $	*/
2*36dcc4a4SLionel Sambuc 
3*36dcc4a4SLionel Sambuc /*-
4*36dcc4a4SLionel Sambuc  * Copyright (c) 1993
5*36dcc4a4SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
6*36dcc4a4SLionel Sambuc  *
7*36dcc4a4SLionel Sambuc  * This code is derived from software contributed to Berkeley by
8*36dcc4a4SLionel Sambuc  * Paul Borman at Krystal Technologies.
9*36dcc4a4SLionel Sambuc  *
10*36dcc4a4SLionel Sambuc  * Redistribution and use in source and binary forms, with or without
11*36dcc4a4SLionel Sambuc  * modification, are permitted provided that the following conditions
12*36dcc4a4SLionel Sambuc  * are met:
13*36dcc4a4SLionel Sambuc  * 1. Redistributions of source code must retain the above copyright
14*36dcc4a4SLionel Sambuc  *    notice, this list of conditions and the following disclaimer.
15*36dcc4a4SLionel Sambuc  * 2. Redistributions in binary form must reproduce the above copyright
16*36dcc4a4SLionel Sambuc  *    notice, this list of conditions and the following disclaimer in the
17*36dcc4a4SLionel Sambuc  *    documentation and/or other materials provided with the distribution.
18*36dcc4a4SLionel Sambuc  * 3. Neither the name of the University nor the names of its contributors
19*36dcc4a4SLionel Sambuc  *    may be used to endorse or promote products derived from this software
20*36dcc4a4SLionel Sambuc  *    without specific prior written permission.
21*36dcc4a4SLionel Sambuc  *
22*36dcc4a4SLionel Sambuc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23*36dcc4a4SLionel Sambuc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24*36dcc4a4SLionel Sambuc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25*36dcc4a4SLionel Sambuc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26*36dcc4a4SLionel Sambuc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27*36dcc4a4SLionel Sambuc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28*36dcc4a4SLionel Sambuc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29*36dcc4a4SLionel Sambuc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30*36dcc4a4SLionel Sambuc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31*36dcc4a4SLionel Sambuc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32*36dcc4a4SLionel Sambuc  * SUCH DAMAGE.
33*36dcc4a4SLionel Sambuc  *
34*36dcc4a4SLionel Sambuc  *	@(#)ldef.h	8.1 (Berkeley) 6/6/93
35*36dcc4a4SLionel Sambuc  */
36*36dcc4a4SLionel Sambuc 
37*36dcc4a4SLionel Sambuc /*
38*36dcc4a4SLionel Sambuc  * This should look a LOT like a _RuneEntry
39*36dcc4a4SLionel Sambuc  */
40*36dcc4a4SLionel Sambuc typedef struct rune_list {
41*36dcc4a4SLionel Sambuc     __nbrune_t		min;
42*36dcc4a4SLionel Sambuc     __nbrune_t 		max;
43*36dcc4a4SLionel Sambuc     __nbrune_t 		map;
44*36dcc4a4SLionel Sambuc     u_int32_t		*types;
45*36dcc4a4SLionel Sambuc     struct rune_list	*next;
46*36dcc4a4SLionel Sambuc } rune_list;
47*36dcc4a4SLionel Sambuc 
48*36dcc4a4SLionel Sambuc typedef struct rune_map {
49*36dcc4a4SLionel Sambuc     u_int32_t		map[_CTYPE_CACHE_SIZE];
50*36dcc4a4SLionel Sambuc     rune_list		*root;
51*36dcc4a4SLionel Sambuc } rune_map;
52