Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.bin / tn3270 / tools / mkdctype / ectype.c
blobad9099e52ed65e3c0239c51088527ccc3496ffe5
1 /* $NetBSD: ectype.c,v 1.6 2003/08/07 11:16:40 agc Exp $ */
3 /*-
4 * Copyright (c) 1988 The Regents of the University of California.
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
32 #ifndef HOST_TOOL
33 #include <sys/cdefs.h>
34 #if defined(__RCSID) && !defined(lint)
35 #if 0
36 static char sccsid[] = "from: @(#)ectype.c 4.2 (Berkeley) 4/26/91";*/
37 #else
38 __RCSID("$NetBSD: ectype.c,v 1.6 2003/08/07 11:16:40 agc Exp $");
39 #endif
40 #endif /* not lint */
41 #endif
43 #include "ectype.h"
45 unsigned char ectype[ECMAXCHAR] = {
46 /* 0x00 */
47 E_SPACE,
48 0x00,
49 0x00,
50 0x00,
51 0x00,
52 0x00,
53 0x00,
54 0x00,
55 0x00,
56 0x00,
57 0x00,
58 0x00,
59 0x00,
60 0x00,
61 0x00,
62 0x00,
63 /* 0x10 */
64 0x00,
65 0x00,
66 0x00,
67 0x00,
68 0x00,
69 0x00,
70 0x00,
71 0x00,
72 0x00,
73 0x00,
74 0x00,
75 0x00,
76 0x00,
77 0x00,
78 0x00,
79 0x00,
80 /* 0x20 */
81 0x00,
82 0x00,
83 0x00,
84 0x00,
85 0x00,
86 0x00,
87 0x00,
88 0x00,
89 0x00,
90 0x00,
91 0x00,
92 0x00,
93 0x00,
94 0x00,
95 0x00,
96 0x00,
97 /* 0x30 */
98 0x00,
99 0x00,
100 0x00,
101 0x00,
102 0x00,
103 0x00,
104 0x00,
105 0x00,
106 0x00,
107 0x00,
108 0x00,
109 0x00,
110 0x00,
111 0x00,
112 0x00,
113 0x00,
114 /* 0x40 */
115 E_SPACE,
116 0x00,
117 0x00,
118 0x00,
119 0x00,
120 0x00,
121 0x00,
122 0x00,
123 0x00,
124 0x00,
125 E_PRINT|E_PUNCT,
126 E_PRINT|E_PUNCT,
127 E_PRINT|E_PUNCT,
128 E_PRINT|E_PUNCT,
129 E_PRINT|E_PUNCT,
130 E_PRINT|E_PUNCT,
131 /* 0x50 */
132 E_PRINT|E_PUNCT,
133 0x00,
134 0x00,
135 0x00,
136 0x00,
137 0x00,
138 0x00,
139 0x00,
140 0x00,
141 0x00,
142 E_PRINT|E_PUNCT,
143 E_PRINT|E_PUNCT,
144 E_PRINT|E_PUNCT,
145 E_PRINT|E_PUNCT,
146 E_PRINT|E_PUNCT,
147 E_PRINT|E_PUNCT,
148 /* 0x60 */
149 E_PRINT|E_PUNCT,
150 E_PRINT|E_PUNCT,
151 0x00,
152 0x00,
153 0x00,
154 0x00,
155 0x00,
156 0x00,
157 0x00,
158 0x00,
159 E_PRINT|E_PUNCT,
160 E_PRINT|E_PUNCT,
161 E_PRINT|E_PUNCT,
162 E_PRINT|E_PUNCT,
163 E_PRINT|E_PUNCT,
164 E_PRINT|E_PUNCT,
165 /* 0x70 */
166 0x00,
167 0x00,
168 0x00,
169 0x00,
170 0x00,
171 0x00,
172 0x00,
173 0x00,
174 0x00,
175 E_PRINT|E_PUNCT,
176 E_PRINT|E_PUNCT,
177 E_PRINT|E_PUNCT,
178 E_PRINT|E_PUNCT,
179 E_PRINT|E_PUNCT,
180 E_PRINT|E_PUNCT,
181 E_PRINT|E_PUNCT,
182 /* 0x80 */
183 0x00,
184 E_PRINT|E_LOWER,
185 E_PRINT|E_LOWER,
186 E_PRINT|E_LOWER,
187 E_PRINT|E_LOWER,
188 E_PRINT|E_LOWER,
189 E_PRINT|E_LOWER,
190 E_PRINT|E_LOWER,
191 E_PRINT|E_LOWER,
192 E_PRINT|E_LOWER,
193 0x00,
194 0x00,
195 0x00,
196 0x00,
197 0x00,
198 0x00,
199 /* 0x90 */
200 0x00,
201 E_PRINT|E_LOWER,
202 E_PRINT|E_LOWER,
203 E_PRINT|E_LOWER,
204 E_PRINT|E_LOWER,
205 E_PRINT|E_LOWER,
206 E_PRINT|E_LOWER,
207 E_PRINT|E_LOWER,
208 E_PRINT|E_LOWER,
209 E_PRINT|E_LOWER,
210 0x00,
211 0x00,
212 0x00,
213 0x00,
214 0x00,
215 0x00,
216 /* 0xA0 */
217 0x00,
218 E_PRINT|E_PUNCT,
219 E_PRINT|E_LOWER,
220 E_PRINT|E_LOWER,
221 E_PRINT|E_LOWER,
222 E_PRINT|E_LOWER,
223 E_PRINT|E_LOWER,
224 E_PRINT|E_LOWER,
225 E_PRINT|E_LOWER,
226 E_PRINT|E_LOWER,
227 0x00,
228 0x00,
229 0x00,
230 0x00,
231 0x00,
232 0x00,
233 /* 0xB0 */
234 0x00,
235 0x00,
236 0x00,
237 0x00,
238 0x00,
239 0x00,
240 0x00,
241 0x00,
242 0x00,
243 0x00,
244 0x00,
245 0x00,
246 0x00,
247 0x00,
248 0x00,
249 0x00,
250 /* 0xC0 */
251 E_PRINT|E_PUNCT,
252 E_PRINT|E_UPPER,
253 E_PRINT|E_UPPER,
254 E_PRINT|E_UPPER,
255 E_PRINT|E_UPPER,
256 E_PRINT|E_UPPER,
257 E_PRINT|E_UPPER,
258 E_PRINT|E_UPPER,
259 E_PRINT|E_UPPER,
260 E_PRINT|E_UPPER,
261 0x00,
262 0x00,
263 0x00,
264 0x00,
265 0x00,
266 0x00,
267 /* 0xD0 */
268 E_PRINT|E_PUNCT,
269 E_PRINT|E_UPPER,
270 E_PRINT|E_UPPER,
271 E_PRINT|E_UPPER,
272 E_PRINT|E_UPPER,
273 E_PRINT|E_UPPER,
274 E_PRINT|E_UPPER,
275 E_PRINT|E_UPPER,
276 E_PRINT|E_UPPER,
277 E_PRINT|E_UPPER,
278 0x00,
279 0x00,
280 0x00,
281 0x00,
282 0x00,
283 0x00,
284 /* 0xE0 */
285 E_PRINT|E_PUNCT,
286 0x00,
287 E_PRINT|E_UPPER,
288 E_PRINT|E_UPPER,
289 E_PRINT|E_UPPER,
290 E_PRINT|E_UPPER,
291 E_PRINT|E_UPPER,
292 E_PRINT|E_UPPER,
293 E_PRINT|E_UPPER,
294 E_PRINT|E_UPPER,
295 0x00,
296 0x00,
297 0x00,
298 0x00,
299 0x00,
300 0x00,
301 /* 0xF0 */
302 E_PRINT|E_DIGIT,
303 E_PRINT|E_DIGIT,
304 E_PRINT|E_DIGIT,
305 E_PRINT|E_DIGIT,
306 E_PRINT|E_DIGIT,
307 E_PRINT|E_DIGIT,
308 E_PRINT|E_DIGIT,
309 E_PRINT|E_DIGIT,
310 E_PRINT|E_DIGIT,
311 E_PRINT|E_DIGIT,
312 0x00,
313 0x00,
314 0x00,
315 0x00,
316 0x00,
317 0x00