xref: /illumos-gate/usr/src/cmd/csh/sh.char.c (revision 258f91c6020f3614878f3dcd49df02d9e004de2c)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * Copyright 1990 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
47c478bd9Sstevel@tonic-gate  */
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
77c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
87c478bd9Sstevel@tonic-gate 
97c478bd9Sstevel@tonic-gate /*
107c478bd9Sstevel@tonic-gate  * Copyright (c) 1980 Regents of the University of California.
117c478bd9Sstevel@tonic-gate  * All rights reserved.  The Berkeley Software License Agreement
127c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
137c478bd9Sstevel@tonic-gate  */
147c478bd9Sstevel@tonic-gate 
157c478bd9Sstevel@tonic-gate #include "sh.char.h"
167c478bd9Sstevel@tonic-gate 
17*258f91c6SToomas Soome unsigned int Z;
187c478bd9Sstevel@tonic-gate unsigned short _cmap[128] = {
197c478bd9Sstevel@tonic-gate /*	nul		soh		stx		etx	*/
207c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
217c478bd9Sstevel@tonic-gate 
227c478bd9Sstevel@tonic-gate /*	eot		enq		ack		bel	*/
237c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
247c478bd9Sstevel@tonic-gate 
257c478bd9Sstevel@tonic-gate /*	bs		ht		nl		vt	*/
267c478bd9Sstevel@tonic-gate 	0,		_SP|_META,	_NL|_META,	0,
277c478bd9Sstevel@tonic-gate 
287c478bd9Sstevel@tonic-gate /*	np		cr		so		si	*/
297c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate /*	dle		dc1		dc2		dc3	*/
327c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
337c478bd9Sstevel@tonic-gate 
347c478bd9Sstevel@tonic-gate /*	dc4		nak		syn		etb	*/
357c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate /*	can		em		sub		esc	*/
387c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate /*	fs		gs		rs		us	*/
417c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
427c478bd9Sstevel@tonic-gate 
437c478bd9Sstevel@tonic-gate /*	sp		!		"		#	*/
447c478bd9Sstevel@tonic-gate 	_SP|_META,	0,		_Q,		_META,
457c478bd9Sstevel@tonic-gate 
467c478bd9Sstevel@tonic-gate /*	$		%		&		'	*/
477c478bd9Sstevel@tonic-gate 	_DOL,		0,		_META,		_Q,
487c478bd9Sstevel@tonic-gate 
497c478bd9Sstevel@tonic-gate /*	(		)		*		+	*/
507c478bd9Sstevel@tonic-gate 	_META,		_META,		_GLOB,		0,
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate /*	,		-		.		/	*/
537c478bd9Sstevel@tonic-gate 	0,		0,		0,		0,
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate /*	0		1		2		3	*/
567c478bd9Sstevel@tonic-gate 	_DIG,		_DIG,		_DIG,		_DIG,
577c478bd9Sstevel@tonic-gate 
587c478bd9Sstevel@tonic-gate /*	4		5		6		7	*/
597c478bd9Sstevel@tonic-gate 	_DIG,		_DIG,		_DIG,		_DIG,
607c478bd9Sstevel@tonic-gate 
617c478bd9Sstevel@tonic-gate /*	8		9		:		;	*/
627c478bd9Sstevel@tonic-gate 	_DIG,		_DIG,		0,		_META,
637c478bd9Sstevel@tonic-gate 
647c478bd9Sstevel@tonic-gate /*	<		=		>		?	*/
657c478bd9Sstevel@tonic-gate 	_META,		0,		_META,		_GLOB,
667c478bd9Sstevel@tonic-gate 
677c478bd9Sstevel@tonic-gate /*	@		A		B		C	*/
687c478bd9Sstevel@tonic-gate 	0,		_LET,		_LET,		_LET,
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate /*	D		E		F		G	*/
717c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
727c478bd9Sstevel@tonic-gate 
737c478bd9Sstevel@tonic-gate /*	H		I		J		K	*/
747c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
757c478bd9Sstevel@tonic-gate 
767c478bd9Sstevel@tonic-gate /*	L		M		N		O	*/
777c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
787c478bd9Sstevel@tonic-gate 
797c478bd9Sstevel@tonic-gate /*	P		Q		R		S	*/
807c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
817c478bd9Sstevel@tonic-gate 
827c478bd9Sstevel@tonic-gate /*	T		U		V		W	*/
837c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
847c478bd9Sstevel@tonic-gate 
857c478bd9Sstevel@tonic-gate /*	X		Y		Z		[	*/
867c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_GLOB,
877c478bd9Sstevel@tonic-gate 
887c478bd9Sstevel@tonic-gate /*	\		]		^		_	*/
897c478bd9Sstevel@tonic-gate 	_ESC,		0,		0,		_LET,
907c478bd9Sstevel@tonic-gate 
917c478bd9Sstevel@tonic-gate /*	`		a		b		c	*/
927c478bd9Sstevel@tonic-gate 	_Q1|_GLOB,	_LET,		_LET,		_LET,
937c478bd9Sstevel@tonic-gate 
947c478bd9Sstevel@tonic-gate /*	d		e		f		g	*/
957c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
967c478bd9Sstevel@tonic-gate 
977c478bd9Sstevel@tonic-gate /*	h		i		j		k	*/
987c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
997c478bd9Sstevel@tonic-gate 
1007c478bd9Sstevel@tonic-gate /*	l		m		n		o	*/
1017c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
1027c478bd9Sstevel@tonic-gate 
1037c478bd9Sstevel@tonic-gate /*	p		q		r		s	*/
1047c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
1057c478bd9Sstevel@tonic-gate 
1067c478bd9Sstevel@tonic-gate /*	t		u		v		w	*/
1077c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_LET,
1087c478bd9Sstevel@tonic-gate 
1097c478bd9Sstevel@tonic-gate /*	x		y		z		{	*/
1107c478bd9Sstevel@tonic-gate 	_LET,		_LET,		_LET,		_GLOB,
1117c478bd9Sstevel@tonic-gate 
1127c478bd9Sstevel@tonic-gate /*	|		}		~		del	*/
1137c478bd9Sstevel@tonic-gate 	_META,		0,		0,		0,
1147c478bd9Sstevel@tonic-gate };
115