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