source: buchla-68k/lib700/ctype.c@ 861ab45

Last change on this file since 861ab45 was d18a473, checked in by Thomas Lopatic <thomas@…>, 7 years ago

No more warnings in lib700.

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[f40a309]1/*
2 ============================================================================
3 ctype.c -- extended character type table, ala' Unix(tm)
4 Version 8 -- 1987-06-16 -- D.N. Lynx Crowe
5
6 This character type table supports the extended ctype.h macros.
7 See the ctype.h header file for further notes.
8
9 WARNING: SYS5CODE must be defined properly in ctype.h for the macros
10 to work with this table.
11 ============================================================================
12*/
13
[b28a12e]14#include "ram.h"
[f40a309]15
16#define _CS _C|_S
17#define _PS _P|_S
18#define _NX _N|_X
19#define _UX _U|_X
20#define _LX _L|_X
21
[d18a473]22uint8_t __atab[] = { /* EOF won't work properly with this table */
[f40a309]23
24 /* Octal */ /* Hex */
25 /* 000..007 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 00..07 */
26 /* 010..017 */ _C, _CS, _CS, _CS, _CS, _CS, _C, _C, /* 08..0F */
27 /* 020..027 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 10..17 */
28 /* 030..037 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 18..1F */
29 /* 040..047 */ _PS, _P, _P, _P, _P, _P, _P, _P, /* 20..27 */
30 /* 050..057 */ _P, _P, _P, _P, _P, _P, _P, _P, /* 28..2F */
31 /* 060..067 */ _NX, _NX, _NX, _NX, _NX, _NX, _NX, _NX, /* 30..37 */
32 /* 070..077 */ _NX, _NX, _P, _P, _P, _P, _P, _P, /* 38..3F */
33
34 /* 100..107 */ _P, _UX, _UX, _UX, _UX, _UX, _UX, _U, /* 40..47 */
35 /* 110..117 */ _U, _U, _U, _U, _U, _U, _U, _U, /* 48..4F */
36 /* 120..127 */ _U, _U, _U, _U, _U, _U, _U, _U, /* 50..57 */
37 /* 130..137 */ _U, _U, _U, _P, _P, _P, _P, _P, /* 58..5F */
38 /* 140..147 */ _P, _LX, _LX, _LX, _LX, _LX, _LX, _L, /* 60..67 */
39 /* 150..157 */ _L, _L, _L, _L, _L, _L, _L, _L, /* 68..6F */
40 /* 160..167 */ _L, _L, _L, _L, _L, _L, _L, _L, /* 70..77 */
41 /* 170..177 */ _L, _L, _L, _P, _P, _P, _P, _C, /* 78..7F */
42
43 /* 200..207 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 80..87 */
44 /* 210..217 */ _C, _CS, _CS, _CS, _CS, _CS, _C, _C, /* 88..8F */
45 /* 220..227 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 90..97 */
46 /* 230..237 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 98..9F */
47 /* 240..247 */ _PS, _P, _P, _P, _P, _P, _P, _P, /* A0..A7 */
48 /* 250..257 */ _P, _P, _P, _P, _P, _P, _P, _P, /* A8..AF */
49 /* 260..267 */ _NX, _NX, _NX, _NX, _NX, _NX, _NX, _NX, /* B0..B7 */
50 /* 270..277 */ _NX, _NX, _P, _P, _P, _P, _P, _P, /* B8..BF */
51
52 /* 300..307 */ _P, _UX, _UX, _UX, _UX, _UX, _UX, _U, /* C0..C7 */
53 /* 310..317 */ _U, _U, _U, _U, _U, _U, _U, _U, /* C8..CF */
54 /* 320..327 */ _U, _U, _U, _U, _U, _U, _U, _U, /* D0..D7 */
55 /* 330..337 */ _U, _U, _U, _P, _P, _P, _P, _P, /* D8..DF */
56 /* 340..347 */ _P, _LX, _LX, _LX, _LX, _LX, _LX, _L, /* E0..E7 */
57 /* 350..357 */ _L, _L, _L, _L, _L, _L, _L, _L, /* E8..EF */
58 /* 360..367 */ _L, _L, _L, _L, _L, _L, _L, _L, /* F0..F7 */
59 /* 370..377 */ _L, _L, _L, _P, _P, _P, _P, _C /* F8..FF */
60};
61
[6262b5c]62
Note: See TracBrowser for help on using the repository browser.