summaryrefslogtreecommitdiff
path: root/usr/src/cmd/csh/sh.char.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/csh/sh.char.c')
-rw-r--r--usr/src/cmd/csh/sh.char.c115
1 files changed, 115 insertions, 0 deletions
diff --git a/usr/src/cmd/csh/sh.char.c b/usr/src/cmd/csh/sh.char.c
new file mode 100644
index 0000000000..8c79005dd7
--- /dev/null
+++ b/usr/src/cmd/csh/sh.char.c
@@ -0,0 +1,115 @@
+/*
+ * Copyright 1990 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
+/* All Rights Reserved */
+
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved. The Berkeley Software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "sh.char.h"
+
+unsigned short _cmap[128] = {
+/* nul soh stx etx */
+ 0, 0, 0, 0,
+
+/* eot enq ack bel */
+ 0, 0, 0, 0,
+
+/* bs ht nl vt */
+ 0, _SP|_META, _NL|_META, 0,
+
+/* np cr so si */
+ 0, 0, 0, 0,
+
+/* dle dc1 dc2 dc3 */
+ 0, 0, 0, 0,
+
+/* dc4 nak syn etb */
+ 0, 0, 0, 0,
+
+/* can em sub esc */
+ 0, 0, 0, 0,
+
+/* fs gs rs us */
+ 0, 0, 0, 0,
+
+/* sp ! " # */
+ _SP|_META, 0, _Q, _META,
+
+/* $ % & ' */
+ _DOL, 0, _META, _Q,
+
+/* ( ) * + */
+ _META, _META, _GLOB, 0,
+
+/* , - . / */
+ 0, 0, 0, 0,
+
+/* 0 1 2 3 */
+ _DIG, _DIG, _DIG, _DIG,
+
+/* 4 5 6 7 */
+ _DIG, _DIG, _DIG, _DIG,
+
+/* 8 9 : ; */
+ _DIG, _DIG, 0, _META,
+
+/* < = > ? */
+ _META, 0, _META, _GLOB,
+
+/* @ A B C */
+ 0, _LET, _LET, _LET,
+
+/* D E F G */
+ _LET, _LET, _LET, _LET,
+
+/* H I J K */
+ _LET, _LET, _LET, _LET,
+
+/* L M N O */
+ _LET, _LET, _LET, _LET,
+
+/* P Q R S */
+ _LET, _LET, _LET, _LET,
+
+/* T U V W */
+ _LET, _LET, _LET, _LET,
+
+/* X Y Z [ */
+ _LET, _LET, _LET, _GLOB,
+
+/* \ ] ^ _ */
+ _ESC, 0, 0, _LET,
+
+/* ` a b c */
+ _Q1|_GLOB, _LET, _LET, _LET,
+
+/* d e f g */
+ _LET, _LET, _LET, _LET,
+
+/* h i j k */
+ _LET, _LET, _LET, _LET,
+
+/* l m n o */
+ _LET, _LET, _LET, _LET,
+
+/* p q r s */
+ _LET, _LET, _LET, _LET,
+
+/* t u v w */
+ _LET, _LET, _LET, _LET,
+
+/* x y z { */
+ _LET, _LET, _LET, _GLOB,
+
+/* | } ~ del */
+ _META, 0, 0, 0,
+};