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