| 1 |
/* $XConsortium: tokst.h,v 1.2 91/10/10 11:20:00 rws Exp $ */ |
| 2 |
/* Copyright International Business Machines,Corp. 1991 |
| 3 |
* All Rights Reserved |
| 4 |
* |
| 5 |
* License to use, copy, modify, and distribute this software |
| 6 |
* and its documentation for any purpose and without fee is |
| 7 |
* hereby granted, provided that the above copyright notice |
| 8 |
* appear in all copies and that both that copyright notice and |
| 9 |
* this permission notice appear in supporting documentation, |
| 10 |
* and that the name of IBM not be used in advertising or |
| 11 |
* publicity pertaining to distribution of the software without |
| 12 |
* specific, written prior permission. |
| 13 |
* |
| 14 |
* IBM PROVIDES THIS SOFTWARE "AS IS", WITHOUT ANY WARRANTIES |
| 15 |
* OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT |
| 16 |
* LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, |
| 17 |
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF |
| 18 |
* THIRD PARTY RIGHTS. THE ENTIRE RISK AS TO THE QUALITY AND |
| 19 |
* PERFORMANCE OF THE SOFTWARE, INCLUDING ANY DUTY TO SUPPORT |
| 20 |
* OR MAINTAIN, BELONGS TO THE LICENSEE. SHOULD ANY PORTION OF |
| 21 |
* THE SOFTWARE PROVE DEFECTIVE, THE LICENSEE (NOT IBM) ASSUMES |
| 22 |
* THE ENTIRE COST OF ALL SERVICING, REPAIR AND CORRECTION. IN |
| 23 |
* NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
| 24 |
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING |
| 25 |
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF |
| 26 |
* CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
| 27 |
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
| 28 |
* SOFTWARE. |
| 29 |
*/ |
| 30 |
/* -------------------------------------- */ |
| 31 |
/* --- MACHINE GENERATED, DO NOT EDIT --- */ |
| 32 |
/* -------------------------------------- */ |
| 33 |
|
| 34 |
#ifndef TOKST |
| 35 |
#define TOKST 1 |
| 36 |
|
| 37 |
/* |
| 38 |
* State Index Tables -- |
| 39 |
* |
| 40 |
* These tables map the input character to the |
| 41 |
* proper entry in the Class Action Table. |
| 42 |
* There is one table for each state. |
| 43 |
* |
| 44 |
*/ |
| 45 |
#define s0 (si0+2) |
| 46 |
static unsigned char si0[258] = { 0x10,0x11, |
| 47 |
0x02,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x02,0x02,0x0F,0x0F,0x02,0x0F,0x0F, |
| 48 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 49 |
0x02,0x0F,0x0F,0x0F,0x0F,0x03,0x0F,0x0F,0x05,0x0B,0x0F,0x0D,0x0F,0x0D,0x0E,0x04, |
| 50 |
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x0F,0x0F,0x08,0x0F,0x0C,0x0F, |
| 51 |
0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 52 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x0F,0x0A,0x0F,0x0F, |
| 53 |
0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 54 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x0F,0x09,0x0F,0x0F, |
| 55 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 56 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 57 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 58 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 59 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 60 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 61 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, |
| 62 |
0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F |
| 63 |
}; |
| 64 |
|
| 65 |
#define s1 (si1+2) |
| 66 |
static unsigned char si1[258] = { 0x14,0x15, |
| 67 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 68 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 69 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x12, |
| 70 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 71 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 72 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 73 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 74 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 75 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 76 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 77 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 78 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 79 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 80 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 81 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13, |
| 82 |
0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13 |
| 83 |
}; |
| 84 |
|
| 85 |
#define s2 (si2+2) |
| 86 |
static unsigned char si2[258] = { 0x1B,0x1C, |
| 87 |
0x16,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x16,0x16,0x1A,0x1A,0x16,0x1A,0x1A, |
| 88 |
0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A, |
| 89 |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1A, |
| 101 |
0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A, |
| 102 |
0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A,0x1A |
| 103 |
}; |
| 104 |
|
| 105 |
#define s3 (si3+2) |
| 106 |
static unsigned char si3[258] = { 0x23,0x24, |
| 107 |
0x1D,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x1D,0x1D,0x22,0x22,0x1D,0x22,0x22, |
| 108 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 109 |
0x1D,0x22,0x22,0x20,0x22,0x1E,0x22,0x22,0x1E,0x1E,0x22,0x22,0x22,0x22,0x1F,0x1E, |
| 110 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x1E,0x22,0x1E,0x22, |
| 111 |
0x22,0x22,0x22,0x22,0x22,0x21,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 112 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x1E,0x22,0x1E,0x22,0x22, |
| 113 |
0x22,0x22,0x22,0x22,0x22,0x21,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 114 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x1E,0x22,0x1E,0x22,0x22, |
| 115 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 116 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 117 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 118 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 119 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 120 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 121 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, |
| 122 |
0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22 |
| 123 |
}; |
| 124 |
|
| 125 |
#define s4 (si4+2) |
| 126 |
static unsigned char si4[258] = { 0x29,0x2A, |
| 127 |
0x25,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x25,0x25,0x28,0x28,0x25,0x28,0x28, |
| 128 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 129 |
0x25,0x28,0x28,0x28,0x28,0x26,0x28,0x28,0x26,0x26,0x28,0x28,0x28,0x28,0x28,0x26, |
| 130 |
0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x28,0x28,0x26,0x28,0x26,0x28, |
| 131 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 132 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x26,0x28,0x26,0x28,0x28, |
| 133 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 134 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x26,0x28,0x26,0x28,0x28, |
| 135 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 136 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 137 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 138 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 139 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 140 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 141 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28, |
| 142 |
0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28 |
| 143 |
}; |
| 144 |
|
| 145 |
#define s5 (si5+2) |
| 146 |
static unsigned char si5[258] = { 0x30,0x31, |
| 147 |
0x2B,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2B,0x2B,0x2F,0x2F,0x2B,0x2F,0x2F, |
| 148 |
0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F,0x2F, |
| 149 |
0x2B,0x2F,0x2F,0x2F,0x2F,0x2C,0x2F,0x2F,0x2C,0x2C,0x2F,0x2F,0x2F,0x2F,0x2F,0x2C, |
| 150 |
0x2E,0x2E,0x2E,0x2E,0x2E,0x2E,0x2E,0x2E,0x2E,0x2E,0x2F,0x2F,0x2C,0x2F,0x2C,0x2F, |
| 151 |
0x2F,0x2F,0x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F,0x2F,0x2F |
| 163 |
}; |
| 164 |
|
| 165 |
#define s6 (si6+2) |
| 166 |
static unsigned char si6[258] = { 0x36,0x37, |
| 167 |
0x32,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x32,0x32,0x35,0x35,0x32,0x35,0x35, |
| 168 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 169 |
0x32,0x35,0x35,0x35,0x35,0x33,0x35,0x35,0x33,0x33,0x35,0x35,0x35,0x35,0x35,0x33, |
| 170 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x33,0x35,0x33,0x35, |
| 171 |
0x35,0x35,0x35,0x35,0x35,0x34,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 172 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x33,0x35,0x33,0x35,0x35, |
| 173 |
0x35,0x35,0x35,0x35,0x35,0x34,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 174 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x33,0x35,0x33,0x35,0x35, |
| 175 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 176 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 177 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 178 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 179 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 180 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 181 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, |
| 182 |
0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35 |
| 183 |
}; |
| 184 |
|
| 185 |
#define s7 (si7+2) |
| 186 |
static unsigned char si7[258] = { 0x3D,0x3E, |
| 187 |
0x38,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x38,0x38,0x3C,0x3C,0x38,0x3C,0x3C, |
| 188 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 189 |
0x38,0x3C,0x3C,0x3C,0x3C,0x39,0x3C,0x3C,0x39,0x39,0x3C,0x3A,0x3C,0x3A,0x3C,0x39, |
| 190 |
0x3B,0x3B,0x3B,0x3B,0x3B,0x3B,0x3B,0x3B,0x3B,0x3B,0x3C,0x3C,0x39,0x3C,0x39,0x3C, |
| 191 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 192 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x39,0x3C,0x39,0x3C,0x3C, |
| 193 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 194 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x39,0x3C,0x39,0x3C,0x3C, |
| 195 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 196 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 197 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 198 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 199 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 200 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 201 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C, |
| 202 |
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C |
| 203 |
}; |
| 204 |
|
| 205 |
#define s8 (si8+2) |
| 206 |
static unsigned char si8[258] = { 0x43,0x44, |
| 207 |
0x3F,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x3F,0x3F,0x42,0x42,0x3F,0x42,0x42, |
| 208 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 209 |
0x3F,0x42,0x42,0x42,0x42,0x40,0x42,0x42,0x40,0x40,0x42,0x42,0x42,0x42,0x42,0x40, |
| 210 |
0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x42,0x42,0x40,0x42,0x40,0x42, |
| 211 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 212 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x40,0x42,0x40,0x42,0x42, |
| 213 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 214 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x40,0x42,0x40,0x42,0x42, |
| 215 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 216 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 217 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 218 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 219 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 220 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 221 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42, |
| 222 |
0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42 |
| 223 |
}; |
| 224 |
|
| 225 |
#define s9 (si9+2) |
| 226 |
static unsigned char si9[258] = { 0x48,0x49, |
| 227 |
0x45,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x45,0x45,0x47,0x47,0x45,0x47,0x47, |
| 228 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 229 |
0x45,0x47,0x47,0x47,0x47,0x46,0x47,0x47,0x46,0x46,0x47,0x47,0x47,0x47,0x47,0x46, |
| 230 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x46,0x47,0x46,0x47, |
| 231 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 232 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x46,0x47,0x46,0x47,0x47, |
| 233 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 234 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x46,0x47,0x46,0x47,0x47, |
| 235 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 236 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 237 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 238 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 239 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 240 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 241 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47, |
| 242 |
0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x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D,0x4D,0x4D,0x4D,0x4D,0x4D, |
| 258 |
0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D, |
| 259 |
0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D, |
| 260 |
0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D, |
| 261 |
0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D, |
| 262 |
0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D,0x4D |
| 263 |
}; |
| 264 |
|
| 265 |
#define s11 (si11+2) |
| 266 |
static unsigned char si11[258] = { 0x53,0x54, |
| 267 |
0x50,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x50,0x50,0x52,0x52,0x50,0x52,0x52, |
| 268 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 269 |
0x50,0x52,0x52,0x52,0x52,0x51,0x52,0x52,0x51,0x51,0x52,0x52,0x52,0x52,0x52,0x51, |
| 270 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x51,0x52,0x51,0x52, |
| 271 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 272 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x51,0x52,0x51,0x52,0x52, |
| 273 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 274 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x51,0x52,0x51,0x52,0x52, |
| 275 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 276 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 277 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 278 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 279 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 280 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 281 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52, |
| 282 |
0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52 |
| 283 |
}; |
| 284 |
|
| 285 |
/* |
| 286 |
* Class Action Table -- |
| 287 |
* |
| 288 |
* The entries in the Class Action Table indicate the |
| 289 |
* action routine to be called, and the next state to |
| 290 |
* enter, for each relevant character class in each. |
| 291 |
* state. There are several entries for each state. |
| 292 |
* |
| 293 |
*/ |
| 294 |
static int AAH_NAME(int); |
| 295 |
static int BREAK_SIGNAL(int); |
| 296 |
static int HEX_STRING(int); |
| 297 |
static int IMMED_NAME(int); |
| 298 |
static int INTEGER(int); |
| 299 |
static int LEFT_BRACE(int); |
| 300 |
static int LEFT_BRACKET(int); |
| 301 |
static int LITERAL_NAME(int); |
| 302 |
static int NAME(int); |
| 303 |
static int NO_TOKEN(int); |
| 304 |
static int OOPS_NAME(int); |
| 305 |
static int RADIX_NUMBER(int); |
| 306 |
static int REAL(int); |
| 307 |
static int RIGHT_ANGLE(int); |
| 308 |
static int RIGHT_BRACE(int); |
| 309 |
static int RIGHT_BRACKET(int); |
| 310 |
static int RIGHT_PAREN(int); |
| 311 |
static int STRING(int); |
| 312 |
static int add_1st_decpt(int); |
| 313 |
static int add_1st_digits(int); |
| 314 |
static int add_char(int); |
| 315 |
static int add_decpt(int); |
| 316 |
static int add_digits(int); |
| 317 |
static int add_e_sign(int); |
| 318 |
static int add_exponent(int); |
| 319 |
static int add_fraction(int); |
| 320 |
static int add_r_digits(int); |
| 321 |
static int add_radix(int); |
| 322 |
static int add_sign(int); |
| 323 |
static int next_char(int); |
| 324 |
static int skip_comment(int); |
| 325 |
static int skip_space(int); |
| 326 |
|
| 327 |
static struct cat { |
| 328 |
int (*actionRoutineP)(int); |
| 329 |
unsigned char *nextStateP; |
| 330 |
} classActionTable[] = { |
| 331 |
|
| 332 |
/* s0: Classify initial character */ |
| 333 |
/* 00 ALPHA */ {NAME, s0}, /* executable name */ |
| 334 |
/* 01 DIGIT */ {add_1st_digits, s3}, /* number? */ |
| 335 |
/* 02 WHITE_SPACE */ {skip_space, s0}, /* skip white space */ |
| 336 |
/* 03 PERCENT */ {skip_comment, s0}, /* comment? */ |
| 337 |
/* 04 SLASH */ {next_char, s1}, /* literal or imm name */ |
| 338 |
/* 05 LEFT_PAREN */ {STRING, s0}, /* string */ |
| 339 |
/* 06 LEFT_BRACE */ {LEFT_BRACE, s0}, /* begin procedure body */ |
| 340 |
/* 07 LEFT_BRACKET */ {LEFT_BRACKET, s0}, /* begin array */ |
| 341 |
/* 08 LEFT_ANGLE */ {HEX_STRING, s0}, /* hex string? */ |
| 342 |
/* 09 RIGHT_BRACE */ {RIGHT_BRACE, s0}, /* end procedure body */ |
| 343 |
/* 0A RIGHT_BRACKET */ {RIGHT_BRACKET, s0}, /* end array */ |
| 344 |
/* 0B RIGHT_PAREN */ {RIGHT_PAREN, s0}, /* unmatched right paren */ |
| 345 |
/* 0C RIGHT_ANGLE */ {RIGHT_ANGLE, s0}, /* unmatched right angle */ |
| 346 |
/* 0D SIGN */ {add_sign, s2}, /* signed number? */ |
| 347 |
/* 0E DECIMAL_POINT */ {add_1st_decpt, s4}, /* real number? */ |
| 348 |
/* 0F ANY */ {NAME, s0}, /* executable name */ |
| 349 |
/* 10 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 350 |
/* 11 EOF */ {NO_TOKEN, s0}, /* no token found */ |
| 351 |
|
| 352 |
/* s1: Further classify a '/' */ |
| 353 |
/* 12 SLASH */ {IMMED_NAME, s0}, /* immediate name */ |
| 354 |
/* 13 ANY */ {LITERAL_NAME, s0}, /* literal name */ |
| 355 |
/* 14 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 356 |
/* 15 EOF */ {OOPS_NAME, s0}, /* isolated sign */ |
| 357 |
|
| 358 |
/* s2: sign */ |
| 359 |
/* 16 WHITE_SPACE */ {OOPS_NAME, s0}, /* isolated sign */ |
| 360 |
/* 17 SPECIAL */ {OOPS_NAME, s0}, /* isolated sign */ |
| 361 |
/* 18 DIGIT */ {add_digits, s3}, /* number? */ |
| 362 |
/* 19 DECIMAL_POINT */ {add_decpt, s4}, /* real number? */ |
| 363 |
/* 1A ANY */ {NAME, s0}, /* executable name */ |
| 364 |
/* 1B BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 365 |
/* 1C EOF */ {OOPS_NAME, s0}, /* isolated sign */ |
| 366 |
|
| 367 |
/* s3: sign? digit+ */ |
| 368 |
/* 1D WHITE_SPACE */ {INTEGER, s0}, /* n-digit integer */ |
| 369 |
/* 1E SPECIAL */ {INTEGER, s0}, /* n-digit integer */ |
| 370 |
/* 1F DECIMAL_POINT */ {add_char, s5}, /* real number? */ |
| 371 |
/* 20 POUND */ {add_radix, s10}, /* radix number? */ |
| 372 |
/* 21 eE */ {add_char, s7}, /* real with exponent? */ |
| 373 |
/* 22 ANY */ {AAH_NAME, s0}, /* executable name */ |
| 374 |
/* 23 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 375 |
/* 24 EOF */ {INTEGER, s0}, /* n-digit integer */ |
| 376 |
|
| 377 |
/* s4: sign? . */ |
| 378 |
/* 25 WHITE_SPACE */ {OOPS_NAME, s0}, /* isolated +. or -. */ |
| 379 |
/* 26 SPECIAL */ {OOPS_NAME, s0}, /* isolated +. or -. */ |
| 380 |
/* 27 DIGIT */ {add_fraction, s6}, /* number? */ |
| 381 |
/* 28 ANY */ {NAME, s0}, /* executable name */ |
| 382 |
/* 29 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 383 |
/* 2A EOF */ {OOPS_NAME, s0}, /* isolated +. or -. */ |
| 384 |
|
| 385 |
/* s5: sign? digit+ . */ |
| 386 |
/* 2B WHITE_SPACE */ {REAL, s0}, /* real with fraction */ |
| 387 |
/* 2C SPECIAL */ {REAL, s0}, /* real with fraction */ |
| 388 |
/* 2D eE */ {add_char, s7}, /* real with exponent? */ |
| 389 |
/* 2E DIGIT */ {add_fraction, s6}, /* number? */ |
| 390 |
/* 2F ANY */ {AAH_NAME, s0}, /* executable name */ |
| 391 |
/* 30 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 392 |
/* 31 EOF */ {REAL, s0}, /* real with fraction */ |
| 393 |
|
| 394 |
/* s6: sign? (digit+ . digit+) | (. digit+) */ |
| 395 |
/* 32 WHITE_SPACE */ {REAL, s0}, /* real with fraction */ |
| 396 |
/* 33 SPECIAL */ {REAL, s0}, /* real with fraction */ |
| 397 |
/* 34 eE */ {add_char, s7}, /* real with exponent? */ |
| 398 |
/* 35 ANY */ {AAH_NAME, s0}, /* executable name */ |
| 399 |
/* 36 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 400 |
/* 37 EOF */ {REAL, s0}, /* real with fraction */ |
| 401 |
|
| 402 |
/* s7: sign? ((digit+ (. digit*)?) | (. digit+)) Ee */ |
| 403 |
/* 38 WHITE_SPACE */ {OOPS_NAME, s0}, /* invalid real number */ |
| 404 |
/* 39 SPECIAL */ {OOPS_NAME, s0}, /* invalid real number */ |
| 405 |
/* 3A SIGN */ {add_e_sign, s8}, /* real w signed exponent? */ |
| 406 |
/* 3B DIGIT */ {add_exponent, s9}, /* real w exponent ? */ |
| 407 |
/* 3C ANY */ {AAH_NAME, s0}, /* executable name */ |
| 408 |
/* 3D BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 409 |
/* 3E EOF */ {OOPS_NAME, s0}, /* invalid real number */ |
| 410 |
|
| 411 |
/* s8: sign? (digit+ (. digit*)? | (digit* . digit+) Ee sign */ |
| 412 |
/* 3F WHITE_SPACE */ {OOPS_NAME, s0}, /* invalid real number */ |
| 413 |
/* 40 SPECIAL */ {OOPS_NAME, s0}, /* invalid real number */ |
| 414 |
/* 41 DIGIT */ {add_exponent, s9}, /* real w exponent? */ |
| 415 |
/* 42 ANY */ {AAH_NAME, s0}, /* executable name */ |
| 416 |
/* 43 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 417 |
/* 44 EOF */ {OOPS_NAME, s0}, /* invalid real number */ |
| 418 |
|
| 419 |
/* s9: sign? (digit+ (. digit*)? | (digit* . digit+) Ee sign? digit+ */ |
| 420 |
/* 45 WHITE_SPACE */ {REAL, s0}, /* real w exponent */ |
| 421 |
/* 46 SPECIAL */ {REAL, s0}, /* real w exponent */ |
| 422 |
/* 47 ANY */ {AAH_NAME, s0}, /* executable name */ |
| 423 |
/* 48 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 424 |
/* 49 EOF */ {REAL, s0}, /* real w exponent */ |
| 425 |
|
| 426 |
/* s10: digit+ # */ |
| 427 |
/* 4A WHITE_SPACE */ {OOPS_NAME, s0}, /* invalid radix number */ |
| 428 |
/* 4B SPECIAL */ {OOPS_NAME, s0}, /* invalid radix number */ |
| 429 |
/* 4C R_DIGIT */ {add_r_digits, s11}, /* radix number? */ |
| 430 |
/* 4D ANY */ {AAH_NAME, s0}, /* executable name */ |
| 431 |
/* 4E BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 432 |
/* 4F EOF */ {OOPS_NAME, s0}, /* invalid radix number */ |
| 433 |
|
| 434 |
/* s11: digit+ # r_digit+ */ |
| 435 |
/* 50 WHITE_SPACE */ {RADIX_NUMBER, s0}, /* radix number */ |
| 436 |
/* 51 SPECIAL */ {RADIX_NUMBER, s0}, /* radix number */ |
| 437 |
/* 52 ANY */ {AAH_NAME, s0}, /* executable name */ |
| 438 |
/* 53 BREAK */ {BREAK_SIGNAL, s0}, /* break signalled */ |
| 439 |
/* 54 EOF */ {RADIX_NUMBER, s0} /* radix number */ |
| 440 |
}; |
| 441 |
|
| 442 |
/* |
| 443 |
* Character Classification Tables -- |
| 444 |
* |
| 445 |
* The entries in the Character Classification Tables |
| 446 |
* map character codes to character classes. The |
| 447 |
* tables contains one entry per code. The bits in |
| 448 |
* each entry indicate which classes the character |
| 449 |
* code belongs to. |
| 450 |
* |
| 451 |
* The macros 'isInCLASS(ch)' generate code to test |
| 452 |
* whether 'ch' is a character in 'CLASS'. |
| 453 |
* |
| 454 |
*/ |
| 455 |
/* Membership macros for classes defined in table 1 ... */ |
| 456 |
#define isRADIX_DIGIT(c) ((isInP1[c] & 0x80) != 0) |
| 457 |
#define isHEX_DIGIT(c) ((isInP1[c] & 0x40) != 0) |
| 458 |
#define isDECIMAL_DIGIT(c) ((isInP1[c] & 0x10) != 0) |
| 459 |
#define isOCTAL_DIGIT(c) ((isInP1[c] & 0x20) != 0) |
| 460 |
|
| 461 |
/* Membership macros for classes defined in table 2 ... */ |
| 462 |
#define isWHITE_SPACE(c) ((isInP2[c] & 0x80) != 0) |
| 463 |
#define isCOMMENT(c) ((isInP2[c] & 0x40) != 0) |
| 464 |
#define isNAME(c) ((isInP2[c] & 0x20) != 0) |
| 465 |
#define isSTRING_SPECIAL(c) ((isInP2[c] & 0x10) != 0) |
| 466 |
#define isNUMBER_ENDER(c) ((isInP2[c] & 0x08) != 0) |
| 467 |
|
| 468 |
#define isInP1 (isInT1+2) |
| 469 |
static unsigned char isInT1[258] = { 0x00,0x00, |
| 470 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 471 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 472 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 473 |
0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xD0,0xD0,0x00,0x00,0x00,0x00,0x00,0x00, |
| 474 |
0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, |
| 475 |
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00, |
| 476 |
0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, |
| 477 |
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00, |
| 478 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 479 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 480 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 481 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 482 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 483 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 484 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 485 |
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 |
| 486 |
}; |
| 487 |
|
| 488 |
#define isInP2 (isInT2+2) |
| 489 |
static unsigned char isInT2[258] = { 0x18,0x18, |
| 490 |
0xC8,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0xC8,0x88,0x60,0x60,0x98,0x60,0x60, |
| 491 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 492 |
0xC8,0x60,0x60,0x60,0x60,0x48,0x60,0x60,0x58,0x58,0x60,0x60,0x60,0x60,0x60,0x48, |
| 493 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x48,0x60,0x48,0x60, |
| 494 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 495 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x48,0x70,0x48,0x60,0x60, |
| 496 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 497 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x48,0x60,0x48,0x60,0x60, |
| 498 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 499 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 500 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 501 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 502 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 503 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 504 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60, |
| 505 |
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60 |
| 506 |
}; |
| 507 |
|
| 508 |
#endif |