t2ex/bsd_source/lib/libc/src_bsd/stdio/rune.h | bare source | permlink (0.02 seconds) |
1: /* $OpenBSD: rune.h,v 1.2 2011/03/15 22:27:48 stsp Exp $ */ 2: /* $NetBSD: rune.h,v 1.9 2003/08/07 16:43:04 agc Exp $ */ 3: 4: /*- 5: * Copyright (c) 1993 6: * The Regents of the University of California. All rights reserved. 7: * 8: * This code is derived from software contributed to Berkeley by 9: * Paul Borman at Krystal Technologies. 10: * 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. 22: * 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. 34: * 35: * @(#)rune.h 8.1 (Berkeley) 6/27/93 36: */ 37: 38: #ifndef _RUNE_H_ 39: #define _RUNE_H_ 40: 41: #include <stdio.h> 42: #include <wchar.h> 43: #include "runetype.h" 44: 45: /* 46: * map _RTYPE_x to _CTYPE_x 47: * 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.) 51: */ 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 72: 73: /* 74: * global variables 75: */ 76: extern size_t __mb_len_max_runtime; 77: extern const _RuneLocale _DefaultRuneLocale; 78: extern const _RuneLocale *_CurrentRuneLocale; 79: 80: #endif /*! _RUNE_H_ */