xref: /illumos-gate/usr/src/cmd/sh/ctype.c (revision 55fea89dcaa64928bed4327112404dcb3e07b79f)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.9.1.1	*/
27 /*
28  *	UNIX shell
29  */
30 
31 #include	"defs.h"
32 
33 #ifdef __STDC__
34 const
35 #endif
36 unsigned char	_ctype1[] =
37 {
38 /*	000	001	002	003	004	005	006	007	*/
39 	_EOF,	0,	0,	0,	0,	0,	0,	0,
40 
41 /*	bs	ht	nl	vt	np	cr	so	si	*/
42 	0,	_TAB,	_EOR,	0,	0,	0,	0,	0,
43 
44 	0,	0,	0,	0,	0,	0,	0,	0,
45 
46 	0,	0,	0,	0,	0,	0,	0,	0,
47 
48 /*	sp	!	"	#	$	%	&	'	*/
49 	_SPC,	0,	_DQU,	0,	_DOL1,	0,	_AMP,	0,
50 
51 /*	(	)	*	+	,	-	.	/	*/
52 	_BRA,	_KET,	0,	0,	0,	0,	0,	0,
53 
54 /*	0	1	2	3	4	5	6	7	*/
55 	0,	0,	0,	0,	0,	0,	0,	0,
56 
57 /*	8	9	:	;	<	=	>	?	*/
58 	0,	0,	0,	_SEM,	_LT,	0,	_GT,	0,
59 
60 /*	@	A	B	C	D	E	F	G	*/
61 	0,	0,	0,	0,	0,	0,	0,	0,
62 
63 /*	H	I	J	K	L	M	N	O	*/
64 	0,	0,	0,	0,	0,	0,	0,	0,
65 
66 /*	P	Q	R	S	T	U	V	W	*/
67 	0,	0,	0,	0,	0,	0,	0,	0,
68 
69 /*	X	Y	Z	[	\	]	^	_	*/
70 	0,	0,	0,	0,	_BSL,	0,	_HAT,	0,
71 
72 /*	`	a	b	c	d	e	f	g	*/
73 	_LQU,	0,	0,	0,	0,	0,	0,	0,
74 
75 /*	h	i	j	k	l	m	n	o	*/
76 	0,	0,	0,	0,	0,	0,	0,	0,
77 
78 /*	p	q	r	s	t	u	v	w	*/
79 	0,	0,	0,	0,	0,	0,	0,	0,
80 
81 /*	x	y	z	{	|	}	~	del	*/
82 	0,	0,	0,	0,	_BAR,	0,	0,	0
83 };
84 
85 #ifdef __STDC__
86 const
87 #endif
88 unsigned char	_ctype2[] =
89 {
90 /*	000	001	002	003	004	005	006	007	*/
91 	0,	0,	0,	0,	0,	0,	0,	0,
92 
93 /*	bs	ht	nl	vt	np	cr	so	si	*/
94 	0,	0,	0,	0,	0,	0,	0,	0,
95 
96 	0,	0,	0,	0,	0,	0,	0,	0,
97 
98 	0,	0,	0,	0,	0,	0,	0,	0,
99 
100 /*	sp	!	"	#	$	%	&	'	*/
101 	0,	_PCS,	0,	_NUM,	_DOL2,	0,	0,	0,
102 
103 /*	(	)	*	+	,	-	.	/	*/
104 	0,	0,	_AST,	_PLS,	0,	_MIN,	0,	0,
105 
106 /*	0	1	2	3	4	5	6	7	*/
107 	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,
108 
109 /*	8	9	:	;	<	=	>	?	*/
110 	_DIG,	_DIG,	0,	0,	0,	_EQ,	0,	_QU,
111 
112 /*	@	A	B	C	D	E	F	G	*/
113 	_AT,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,
114 
115 /*	H	I	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