xref: /utopia/UTPA2-700.0.x/projects/tools/lint/aeon_include/unctrl.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi /* From curses.h.  */
2*53ee8cc1Swenshuai.xi /*
3*53ee8cc1Swenshuai.xi  * Copyright (c) 1981, 1993
4*53ee8cc1Swenshuai.xi  *	The Regents of the University of California.  All rights reserved.
5*53ee8cc1Swenshuai.xi  *
6*53ee8cc1Swenshuai.xi  * Redistribution and use in source and binary forms, with or without
7*53ee8cc1Swenshuai.xi  * modification, are permitted provided that the following conditions
8*53ee8cc1Swenshuai.xi  * are met:
9*53ee8cc1Swenshuai.xi  * 1. Redistributions of source code must retain the above copyright
10*53ee8cc1Swenshuai.xi  *    notice, this list of conditions and the following disclaimer.
11*53ee8cc1Swenshuai.xi  * 2. Redistributions in binary form must reproduce the above copyright
12*53ee8cc1Swenshuai.xi  *    notice, this list of conditions and the following disclaimer in the
13*53ee8cc1Swenshuai.xi  *    documentation and/or other materials provided with the distribution.
14*53ee8cc1Swenshuai.xi  * 3. All advertising materials mentioning features or use of this software
15*53ee8cc1Swenshuai.xi  *    must display the following acknowledgement:
16*53ee8cc1Swenshuai.xi  *	This product includes software developed by the University of
17*53ee8cc1Swenshuai.xi  *	California, Berkeley and its contributors.
18*53ee8cc1Swenshuai.xi  * 4. Neither the name of the University nor the names of its contributors
19*53ee8cc1Swenshuai.xi  *    may be used to endorse or promote products derived from this software
20*53ee8cc1Swenshuai.xi  *    without specific prior written permission.
21*53ee8cc1Swenshuai.xi  *
22*53ee8cc1Swenshuai.xi  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23*53ee8cc1Swenshuai.xi  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24*53ee8cc1Swenshuai.xi  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25*53ee8cc1Swenshuai.xi  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26*53ee8cc1Swenshuai.xi  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27*53ee8cc1Swenshuai.xi  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28*53ee8cc1Swenshuai.xi  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29*53ee8cc1Swenshuai.xi  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30*53ee8cc1Swenshuai.xi  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31*53ee8cc1Swenshuai.xi  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32*53ee8cc1Swenshuai.xi  * SUCH DAMAGE.
33*53ee8cc1Swenshuai.xi  */
34*53ee8cc1Swenshuai.xi 
35*53ee8cc1Swenshuai.xi #ifndef _UNCTRL_H_
36*53ee8cc1Swenshuai.xi #define _UNCTRL_H_
37*53ee8cc1Swenshuai.xi 
38*53ee8cc1Swenshuai.xi #include <_ansi.h>
39*53ee8cc1Swenshuai.xi 
40*53ee8cc1Swenshuai.xi #define unctrl(c)		__unctrl[(c) & 0xff]
41*53ee8cc1Swenshuai.xi #define unctrllen(ch)		__unctrllen[(ch) & 0xff]
42*53ee8cc1Swenshuai.xi 
43*53ee8cc1Swenshuai.xi extern __IMPORT _CONST char * _CONST __unctrl[256];	/* Control strings. */
44*53ee8cc1Swenshuai.xi extern __IMPORT _CONST char __unctrllen[256];	/* Control strings length. */
45*53ee8cc1Swenshuai.xi 
46*53ee8cc1Swenshuai.xi #endif /* _UNCTRL_H_ */
47