1 /*********************************************************************** 2 * * 3 * This software is part of the ast package * 4 * Copyright (c) 1985-2011 AT&T Intellectual Property * 5 * and is licensed under the * 6 * Eclipse Public License, Version 1.0 * 7 * by AT&T Intellectual Property * 8 * * 9 * A copy of the License is available at * 10 * http://www.eclipse.org/org/documents/epl-v10.html * 11 * (with md5 checksum b35adb5213ca9657e911e9befb180842) * 12 * * 13 * Information and Software Systems Research * 14 * AT&T Research * 15 * Florham Park NJ * 16 * * 17 * Glenn Fowler <gsf@research.att.com> * 18 * David Korn <dgk@research.att.com> * 19 * Phong Vo <kpv@research.att.com> * 20 * * 21 ***********************************************************************/ 22 #if __sgi && _hdr_locale_attr 23 24 /* 25 * irix 6.5 introduced __libc_attr referenced by 26 * ctype and locale macros; this hack lets 27 * 6.5 a.outs run on irix < 6.5 28 * 29 * NOTE: this hack also freezes the US locale 30 */ 31 32 #include <locale_attr.h> 33 34 static __ctype_t _ast_ctype_tbl = 35 { 36 { 37 0x00000000, 0x00000020, 0x00000020, 0x00000020, 38 0x00000020, 0x00000020, 0x00000020, 0x00000020, 39 0x00000020, 0x00000020, 0x80000028, 0x00000028, 40 0x00000028, 0x00000028, 0x00000028, 0x00000020, 41 0x00000020, 0x00000020, 0x00000020, 0x00000020, 42 0x00000020, 0x00000020, 0x00000020, 0x00000020, 43 0x00000020, 0x00000020, 0x00000020, 0x00000020, 44 0x00000020, 0x00000020, 0x00000020, 0x00000020, 45 0x00000020, 0x80008008, 0x00000010, 0x00000010, 46 0x00000010, 0x00000010, 0x00000010, 0x00000010, 47 0x00000010, 0x00000010, 0x00000010, 0x00000010, 48 0x00000010, 0x00000010, 0x00000010, 0x00000010, 49 0x00000010, 0x00000084, 0x00000084, 0x00000084, 50 0x00000084, 0x00000084, 0x00000084, 0x00000084, 51 0x00000084, 0x00000084, 0x00000084, 0x00000010, 52 0x00000010, 0x00000010, 0x00000010, 0x00000010, 53 0x00000010, 0x00000010, 0x00000081, 0x00000081, 54 0x00000081, 0x00000081, 0x00000081, 0x00000081, 55 0x00000001, 0x00000001, 0x00000001, 0x00000001, 56 0x00000001, 0x00000001, 0x00000001, 0x00000001, 57 0x00000001, 0x00000001, 0x00000001, 0x00000001, 58 0x00000001, 0x00000001, 0x00000001, 0x00000001, 59 0x00000001, 0x00000001, 0x00000001, 0x00000001, 60 0x00000010, 0x00000010, 0x00000010, 0x00000010, 61 0x00000010, 0x00000010, 0x00000082, 0x00000082, 62 0x00000082, 0x00000082, 0x00000082, 0x00000082, 63 0x00000002, 0x00000002, 0x00000002, 0x00000002, 64 0x00000002, 0x00000002, 0x00000002, 0x00000002, 65 0x00000002, 0x00000002, 0x00000002, 0x00000002, 66 0x00000002, 0x00000002, 0x00000002, 0x00000002, 67 0x00000002, 0x00000002, 0x00000002, 0x00000002, 68 0x00000010, 0x00000010, 0x00000010, 0x00000010, 69 0x00000020, 0x00000000, 0x00000000, 0x00000000, 70 0x00000000, 0x00000000, 0x00000000, 0x00000000, 71 0x00000000, 0x00000000, 0x00000000, 0x00000000, 72 0x00000000, 0x00000000, 0x00000000, 0x00000000, 73 0x00000000, 0x00000000, 0x00000000, 0x00000000, 74 0x00000000, 0x00000000, 0x00000000, 0x00000000, 75 0x00000000, 0x00000000, 0x00000000, 0x00000000, 76 0x00000000, 0x00000000, 0x00000000, 0x00000000, 77 0x00000000, 0x00000000, 0x00000000, 0x00000000, 78 0x00000000, 0x00000000, 0x00000000, 0x00000000, 79 0x00000000, 0x00000000, 0x00000000, 0x00000000, 80 0x00000000, 0x00000000, 0x00000000, 0x00000000, 81 0x00000000, 0x00000000, 0x00000000, 0x00000000, 82 0x00000000, 0x00000000, 0x00000000, 0x00000000, 83 0x00000000, 0x00000000, 0x00000000, 0x00000000, 84 0x00000000, 0x00000000, 0x00000000, 0x00000000, 85 0x00000000, 0x00000000, 0x00000000, 0x00000000, 86 0x00000000, 0x00000000, 0x00000000, 0x00000000, 87 0x00000000, 0x00000000, 0x00000000, 0x00000000, 88 0x00000000, 0x00000000, 0x00000000, 0x00000000, 89 0x00000000, 0x00000000, 0x00000000, 0x00000000, 90 0x00000000, 0x00000000, 0x00000000, 0x00000000, 91 0x00000000, 0x00000000, 0x00000000, 0x00000000, 92 0x00000000, 0x00000000, 0x00000000, 0x00000000, 93 0x00000000, 0x00000000, 0x00000000, 0x00000000, 94 0x00000000, 0x00000000, 0x00000000, 0x00000000, 95 0x00000000, 0x00000000, 0x00000000, 0x00000000, 96 0x00000000, 0x00000000, 0x00000000, 0x00000000, 97 0x00000000, 0x00000000, 0x00000000, 0x00000000, 98 0x00000000, 0x00000000, 0x00000000, 0x00000000, 99 0x00000000, 0x00000000, 0x00000000, 0x00000000, 100 0x00000000, 0x00000000, 0x00000000, 0x00000000, 101 0x00000000, 102 }, 103 { 104 -1, 0, 1, 2, 3, 4, 5, 6, 105 7, 8, 9, 10, 11, 12, 13, 14, 106 15, 16, 17, 18, 19, 20, 21, 22, 107 23, 24, 25, 26, 27, 28, 29, 30, 108 31, 32, 33, 34, 35, 36, 37, 38, 109 39, 40, 41, 42, 43, 44, 45, 46, 110 47, 48, 49, 50, 51, 52, 53, 54, 111 55, 56, 57, 58, 59, 60, 61, 62, 112 63, 64, 97, 98, 99, 100, 101, 102, 113 103, 104, 105, 106, 107, 108, 109, 110, 114 111, 112, 113, 114, 115, 116, 117, 118, 115 119, 120, 121, 122, 91, 92, 93, 94, 116 95, 96, 97, 98, 99, 100, 101, 102, 117 103, 104, 105, 106, 107, 108, 109, 110, 118 111, 112, 113, 114, 115, 116, 117, 118, 119 119, 120, 121, 122, 123, 124, 125, 126, 120 127, 128, 129, 130, 131, 132, 133, 134, 121 135, 136, 137, 138, 139, 140, 141, 142, 122 143, 144, 145, 146, 147, 148, 149, 150, 123 151, 152, 153, 154, 155, 156, 157, 158, 124 159, 160, 161, 162, 163, 164, 165, 166, 125 167, 168, 169, 170, 171, 172, 173, 174, 126 175, 176, 177, 178, 179, 180, 181, 182, 127 183, 184, 185, 186, 187, 188, 189, 190, 128 191, 192, 193, 194, 195, 196, 197, 198, 129 199, 200, 201, 202, 203, 204, 205, 206, 130 207, 208, 209, 210, 211, 212, 213, 214, 131 215, 216, 217, 218, 219, 220, 221, 222, 132 223, 224, 225, 226, 227, 228, 229, 230, 133 231, 232, 233, 234, 235, 236, 237, 238, 134 239, 240, 241, 242, 243, 244, 245, 246, 135 247, 248, 249, 250, 251, 252, 253, 254, 136 255, 137 }, 138 { 139 -1, 0, 1, 2, 3, 4, 5, 6, 140 7, 8, 9, 10, 11, 12, 13, 14, 141 15, 16, 17, 18, 19, 20, 21, 22, 142 23, 24, 25, 26, 27, 28, 29, 30, 143 31, 32, 33, 34, 35, 36, 37, 38, 144 39, 40, 41, 42, 43, 44, 45, 46, 145 47, 48, 49, 50, 51, 52, 53, 54, 146 55, 56, 57, 58, 59, 60, 61, 62, 147 63, 64, 65, 66, 67, 68, 69, 70, 148 71, 72, 73, 74, 75, 76, 77, 78, 149 79, 80, 81, 82, 83, 84, 85, 86, 150 87, 88, 89, 90, 91, 92, 93, 94, 151 95, 96, 65, 66, 67, 68, 69, 70, 152 71, 72, 73, 74, 75, 76, 77, 78, 153 79, 80, 81, 82, 83, 84, 85, 86, 154 87, 88, 89, 90, 123, 124, 125, 126, 155 127, 128, 129, 130, 131, 132, 133, 134, 156 135, 136, 137, 138, 139, 140, 141, 142, 157 143, 144, 145, 146, 147, 148, 149, 150, 158 151, 152, 153, 154, 155, 156, 157, 158, 159 159, 160, 161, 162, 163, 164, 165, 166, 160 167, 168, 169, 170, 171, 172, 173, 174, 161 175, 176, 177, 178, 179, 180, 181, 182, 162 183, 184, 185, 186, 187, 188, 189, 190, 163 191, 192, 193, 194, 195, 196, 197, 198, 164 199, 200, 201, 202, 203, 204, 205, 206, 165 207, 208, 209, 210, 211, 212, 213, 214, 166 215, 216, 217, 218, 219, 220, 221, 222, 167 223, 224, 225, 226, 227, 228, 229, 230, 168 231, 232, 233, 234, 235, 236, 237, 238, 169 239, 240, 241, 242, 243, 244, 245, 246, 170 247, 248, 249, 250, 251, 252, 253, 254, 171 255, 172 }, 173 { 174 000, 000, 000, 000, 000, 000, 000, 175 }, 176 }; 177 178 extern __attr_t ___libc_attr = 179 { 180 &_ast_ctype_tbl, 181 { 0 }, 182 { 0 }, 183 { 1 }, 184 }; 185 186 #pragma weak __libc_attr = ___libc_attr 187 188 #endif 189