Expand PMF_FN_* macros.
[netbsd-mini2440.git] / usr.bin / tn3270 / api / dctype.c
blob55b3585009e97f19813a71e325e38a24e4dc6952
1 /* $NetBSD: dctype.c,v 1.5 2002/01/31 19:36:50 tv 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 #include <sys/cdefs.h>
33 #if defined(__RCSID) && !defined(lint)
34 #if 0
35 static char sccsid[] = "@(#)dctype.c 4.2 (Berkeley) 4/26/91";
36 #else
37 __RCSID("$NetBSD: dctype.c,v 1.5 2002/01/31 19:36:50 tv Exp $");
38 #endif
39 #endif /* not lint */
41 #include "dctype.h"
43 unsigned char dctype[192] = {
44 /*00*/
45 D_SPACE,
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 D_PUNCT|D_PRINT,
59 D_PUNCT|D_PRINT,
60 D_PUNCT|D_PRINT,
61 /*10*/
62 D_SPACE,
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 D_PUNCT|D_PRINT,
72 D_PUNCT|D_PRINT,
73 D_PUNCT|D_PRINT,
78 /*20*/
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 D_DIGIT|D_PRINT,
87 D_DIGIT|D_PRINT,
88 D_DIGIT|D_PRINT,
91 D_PUNCT|D_PRINT,
92 D_PUNCT|D_PRINT,
93 D_PUNCT|D_PRINT,
94 D_PUNCT|D_PRINT,
95 /*30*/
96 D_PUNCT|D_PRINT,
97 D_PUNCT|D_PRINT,
98 D_PUNCT|D_PRINT,
99 D_PUNCT|D_PRINT,
100 D_PUNCT|D_PRINT,
101 D_PUNCT|D_PRINT,
102 D_PUNCT|D_PRINT,
107 D_PUNCT|D_PRINT,
109 D_PUNCT|D_PRINT,
112 /*40*/
129 /*50*/
146 /*60*/
163 /*70*/
180 /*80*/
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 D_LOWER|D_PRINT,
195 D_LOWER|D_PRINT,
196 D_LOWER|D_PRINT,
197 /*90*/
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 D_LOWER|D_PRINT,
206 D_LOWER|D_PRINT,
207 D_LOWER|D_PRINT,
214 /*A0*/
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 D_UPPER|D_PRINT,
229 D_UPPER|D_PRINT,
230 D_UPPER|D_PRINT,
231 /*B0*/
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 D_UPPER|D_PRINT,
240 D_UPPER|D_PRINT,
241 D_UPPER|D_PRINT,
246 D_PUNCT|D_PRINT,
247 D_PUNCT|D_PRINT,