xref: /illumos-gate/usr/src/cmd/csh/sh.char.c (revision 581cede61ac9c14d8d4ea452562a567189eead78)
1 /*
2  * Copyright 1990 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
7 /*	  All Rights Reserved  	*/
8 
9 /*
10  * Copyright (c) 1980 Regents of the University of California.
11  * All rights reserved.  The Berkeley Software License Agreement
12  * specifies the terms and conditions for redistribution.
13  */
14 
15 #pragma ident	"%Z%%M%	%I%	%E% SMI"
16 
17 #include "sh.char.h"
18 
19 unsigned short _cmap[128] = {
20 /*	nul		soh		stx		etx	*/
21 	0,		0,		0,		0,
22 
23 /*	eot		enq		ack		bel	*/
24 	0,		0,		0,		0,
25 
26 /*	bs		ht		nl		vt	*/
27 	0,		_SP|_META,	_NL|_META,	0,
28 
29 /*	np		cr		so		si	*/
30 	0,		0,		0,		0,
31 
32 /*	dle		dc1		dc2		dc3	*/
33 	0,		0,		0,		0,
34 
35 /*	dc4		nak		syn		etb	*/
36 	0,		0,		0,		0,
37 
38 /*	can		em		sub		esc	*/
39 	0,		0,		0,		0,
40 
41 /*	fs		gs		rs		us	*/
42 	0,		0,		0,		0,
43 
44 /*	sp		!		"		#	*/
45 	_SP|_META,	0,		_Q,		_META,
46 
47 /*	$		%		&		'	*/
48 	_DOL,		0,		_META,		_Q,
49 
50 /*	(		)		*		+	*/
51 	_META,		_META,		_GLOB,		0,
52 
53 /*	,		-		.		/	*/
54 	0,		0,		0,		0,
55 
56 /*	0		1		2		3	*/
57 	_DIG,		_DIG,		_DIG,		_DIG,
58 
59 /*	4		5		6		7	*/
60 	_DIG,		_DIG,		_DIG,		_DIG,
61 
62 /*	8		9		:		;	*/
63 	_DIG,		_DIG,		0,		_META,
64 
65 /*	<		=		>		?	*/
66 	_META,		0,		_META,		_GLOB,
67 
68 /*	@		A		B		C	*/
69 	0,		_LET,		_LET,		_LET,
70 
71 /*	D		E		F		G	*/
72 	_LET,		_LET,		_LET,		_LET,
73 
74 /*	H		I		J		K	*/
75 	_LET,		_LET,		_LET,		_LET,
76 
77 /*	L		M		N		O	*/
78 	_LET,		_LET,		_LET,		_LET,
79 
80 /*	P		Q		R		S	*/
81 	_LET,		_LET,		_LET,		_LET,
82 
83 /*	T		U		V		W	*/
84 	_LET,		_LET,		_LET,		_LET,
85 
86 /*	X		Y		Z		[	*/
87 	_LET,		_LET,		_LET,		_GLOB,
88 
89 /*	\		]		^		_	*/
90 	_ESC,		0,		0,		_LET,
91 
92 /*	`		a		b		c	*/
93 	_Q1|_GLOB,	_LET,		_LET,		_LET,
94 
95 /*	d		e		f		g	*/
96 	_LET,		_LET,		_LET,		_LET,
97 
98 /*	h		i		j		k	*/
99 	_LET,		_LET,		_LET,		_LET,
100 
101 /*	l		m		n		o	*/
102 	_LET,		_LET,		_LET,		_LET,
103 
104 /*	p		q		r		s	*/
105 	_LET,		_LET,		_LET,		_LET,
106 
107 /*	t		u		v		w	*/
108 	_LET,		_LET,		_LET,		_LET,
109 
110 /*	x		y		z		{	*/
111 	_LET,		_LET,		_LET,		_GLOB,
112 
113 /*	|		}		~		del	*/
114 	_META,		0,		0,		0,
115 };
116