]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/tn3270/api/dctype.c
BSD 4.4 Lite Usr.bin Sources
[FreeBSD/FreeBSD.git] / usr.bin / tn3270 / api / dctype.c
1 /*-
2  * Copyright (c) 1988, 1993
3  *      The Regents of the University of California.  All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. All advertising materials mentioning features or use of this software
14  *    must display the following acknowledgement:
15  *      This product includes software developed by the University of
16  *      California, Berkeley and its contributors.
17  * 4. Neither the name of the University nor the names of its contributors
18  *    may be used to endorse or promote products derived from this software
19  *    without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  */
33
34 #ifndef lint
35 static char sccsid[] = "@(#)dctype.c    8.1 (Berkeley) 6/6/93";
36 #endif /* not lint */
37
38 #include "dctype.h"
39
40 unsigned char dctype[192] = {
41 /*00*/
42         D_SPACE,
43         0,
44         0,
45         0,
46         0,
47         0,
48         0,
49         0,
50         D_PUNCT|D_PRINT,
51         D_PUNCT|D_PRINT,
52         D_PUNCT|D_PRINT,
53         D_PUNCT|D_PRINT,
54         D_PUNCT|D_PRINT,
55         D_PUNCT|D_PRINT,
56         D_PUNCT|D_PRINT,
57         D_PUNCT|D_PRINT,
58 /*10*/
59         D_SPACE,
60         D_PUNCT|D_PRINT,
61         D_PUNCT|D_PRINT,
62         D_PUNCT|D_PRINT,
63         D_PUNCT|D_PRINT,
64         D_PUNCT|D_PRINT,
65         D_PUNCT|D_PRINT,
66         D_PUNCT|D_PRINT,
67         D_PUNCT|D_PRINT,
68         D_PUNCT|D_PRINT,
69         D_PUNCT|D_PRINT,
70         D_PUNCT|D_PRINT,
71         0,
72         0,
73         0,
74         0,
75 /*20*/
76         D_DIGIT|D_PRINT,
77         D_DIGIT|D_PRINT,
78         D_DIGIT|D_PRINT,
79         D_DIGIT|D_PRINT,
80         D_DIGIT|D_PRINT,
81         D_DIGIT|D_PRINT,
82         D_DIGIT|D_PRINT,
83         D_DIGIT|D_PRINT,
84         D_DIGIT|D_PRINT,
85         D_DIGIT|D_PRINT,
86         0,
87         0,
88         D_PUNCT|D_PRINT,
89         D_PUNCT|D_PRINT,
90         D_PUNCT|D_PRINT,
91         D_PUNCT|D_PRINT,
92 /*30*/
93         D_PUNCT|D_PRINT,
94         D_PUNCT|D_PRINT,
95         D_PUNCT|D_PRINT,
96         D_PUNCT|D_PRINT,
97         D_PUNCT|D_PRINT,
98         D_PUNCT|D_PRINT,
99         D_PUNCT|D_PRINT,
100         0,
101         0,
102         0,
103         0,
104         D_PUNCT|D_PRINT,
105         0,
106         D_PUNCT|D_PRINT,
107         0,
108         0,
109 /*40*/
110         0,
111         0,
112         0,
113         0,
114         0,
115         0,
116         0,
117         0,
118         0,
119         0,
120         0,
121         0,
122         0,
123         0,
124         0,
125         0,
126 /*50*/
127         0,
128         0,
129         0,
130         0,
131         0,
132         0,
133         0,
134         0,
135         0,
136         0,
137         0,
138         0,
139         0,
140         0,
141         0,
142         0,
143 /*60*/
144         0,
145         0,
146         0,
147         0,
148         0,
149         0,
150         0,
151         0,
152         0,
153         0,
154         0,
155         0,
156         0,
157         0,
158         0,
159         0,
160 /*70*/
161         0,
162         0,
163         0,
164         0,
165         0,
166         0,
167         0,
168         0,
169         0,
170         0,
171         0,
172         0,
173         0,
174         0,
175         0,
176         0,
177 /*80*/
178         D_LOWER|D_PRINT,
179         D_LOWER|D_PRINT,
180         D_LOWER|D_PRINT,
181         D_LOWER|D_PRINT,
182         D_LOWER|D_PRINT,
183         D_LOWER|D_PRINT,
184         D_LOWER|D_PRINT,
185         D_LOWER|D_PRINT,
186         D_LOWER|D_PRINT,
187         D_LOWER|D_PRINT,
188         D_LOWER|D_PRINT,
189         D_LOWER|D_PRINT,
190         D_LOWER|D_PRINT,
191         D_LOWER|D_PRINT,
192         D_LOWER|D_PRINT,
193         D_LOWER|D_PRINT,
194 /*90*/
195         D_LOWER|D_PRINT,
196         D_LOWER|D_PRINT,
197         D_LOWER|D_PRINT,
198         D_LOWER|D_PRINT,
199         D_LOWER|D_PRINT,
200         D_LOWER|D_PRINT,
201         D_LOWER|D_PRINT,
202         D_LOWER|D_PRINT,
203         D_LOWER|D_PRINT,
204         D_LOWER|D_PRINT,
205         0,
206         0,
207         0,
208         0,
209         0,
210         0,
211 /*A0*/
212         D_UPPER|D_PRINT,
213         D_UPPER|D_PRINT,
214         D_UPPER|D_PRINT,
215         D_UPPER|D_PRINT,
216         D_UPPER|D_PRINT,
217         D_UPPER|D_PRINT,
218         D_UPPER|D_PRINT,
219         D_UPPER|D_PRINT,
220         D_UPPER|D_PRINT,
221         D_UPPER|D_PRINT,
222         D_UPPER|D_PRINT,
223         D_UPPER|D_PRINT,
224         D_UPPER|D_PRINT,
225         D_UPPER|D_PRINT,
226         D_UPPER|D_PRINT,
227         D_UPPER|D_PRINT,
228 /*B0*/
229         D_UPPER|D_PRINT,
230         D_UPPER|D_PRINT,
231         D_UPPER|D_PRINT,
232         D_UPPER|D_PRINT,
233         D_UPPER|D_PRINT,
234         D_UPPER|D_PRINT,
235         D_UPPER|D_PRINT,
236         D_UPPER|D_PRINT,
237         D_UPPER|D_PRINT,
238         D_UPPER|D_PRINT,
239         0,
240         0,
241         0,
242         0,
243         D_PUNCT|D_PRINT,
244         D_PUNCT|D_PRINT,
245 };