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