xref: /openbsd-src/usr.bin/mklocale/ldef.h (revision 2f51f1157a19664cd7506d3f692efb7863770e7f)
1*2f51f115Ssobrado /*	$OpenBSD: ldef.h,v 1.2 2009/08/08 19:37:14 sobrado Exp $	*/
24b5f1726Sespie /*	$NetBSD: ldef.h,v 1.4 2003/08/07 11:15:14 agc Exp $	*/
34b5f1726Sespie 
44b5f1726Sespie /*-
54b5f1726Sespie  * Copyright (c) 1993
64b5f1726Sespie  *	The Regents of the University of California.  All rights reserved.
74b5f1726Sespie  *
84b5f1726Sespie  * This code is derived from software contributed to Berkeley by
94b5f1726Sespie  * Paul Borman at Krystal Technologies.
104b5f1726Sespie  *
114b5f1726Sespie  * Redistribution and use in source and binary forms, with or without
124b5f1726Sespie  * modification, are permitted provided that the following conditions
134b5f1726Sespie  * are met:
144b5f1726Sespie  * 1. Redistributions of source code must retain the above copyright
154b5f1726Sespie  *    notice, this list of conditions and the following disclaimer.
164b5f1726Sespie  * 2. Redistributions in binary form must reproduce the above copyright
174b5f1726Sespie  *    notice, this list of conditions and the following disclaimer in the
184b5f1726Sespie  *    documentation and/or other materials provided with the distribution.
194b5f1726Sespie  * 3. Neither the name of the University nor the names of its contributors
204b5f1726Sespie  *    may be used to endorse or promote products derived from this software
214b5f1726Sespie  *    without specific prior written permission.
224b5f1726Sespie  *
234b5f1726Sespie  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
244b5f1726Sespie  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
254b5f1726Sespie  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
264b5f1726Sespie  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
274b5f1726Sespie  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
284b5f1726Sespie  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
294b5f1726Sespie  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
304b5f1726Sespie  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
314b5f1726Sespie  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
324b5f1726Sespie  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
334b5f1726Sespie  * SUCH DAMAGE.
344b5f1726Sespie  *
354b5f1726Sespie  *	@(#)ldef.h	8.1 (Berkeley) 6/6/93
364b5f1726Sespie  */
374b5f1726Sespie 
384b5f1726Sespie /*
394b5f1726Sespie  * This should look a LOT like a _RuneEntry
404b5f1726Sespie  */
414b5f1726Sespie typedef struct rune_list {
424b5f1726Sespie     rune_t		min;
434b5f1726Sespie     rune_t 		max;
444b5f1726Sespie     rune_t 		map;
454b5f1726Sespie     u_int32_t		*types;
464b5f1726Sespie     struct rune_list	*next;
474b5f1726Sespie } rune_list;
484b5f1726Sespie 
494b5f1726Sespie typedef struct rune_map {
504b5f1726Sespie     u_int32_t		map[_CACHED_RUNES];
514b5f1726Sespie     rune_list		*root;
524b5f1726Sespie } rune_map;
53