[package] update squid to 2.7STABLE9, thanks to Tomasz Mon
[openwrt/svn-archive/archive.git] / net / squid / patches / 001-cross_compile.patch
1 --- /dev/null
2 +++ b/src/ctype.c
3 @@ -0,0 +1,546 @@
4 +/*
5 + Static ctype data for IFC-7.1 / RedHat-9 workaround.
6 + This is taken from the GLIBC source code.
7 + Hack by Joe Krahn <krahn@niehs.nih.gov>
8 +
9 + To use, compile with gcc (ifc should work as well):
10 +
11 + gcc -c ctype.c
12 +
13 + Next, include the resulting ctype.o when creating executables.
14 + Do this automatically using a ~/.ifcrc file with a line like this:
15 +
16 + -Wl,/some/path/ctype.o
17 +
18 + That's all.
19 +
20 + My .ifcrc also turns off the typically excessive warnings:
21 + -cm -w90 -w95 -Wl,/home/krahn/Prog/ctype/ctype.o
22 +
23 + To IFC maintainters: it would be nice to flag on/off specific
24 + warning types, like -woff=22,33,44
25 +
26 +*/
27 +
28 +/*
29 + file: ctype.c
30 +
31 + Derived from C-ctype.c and ctype-info.c in the GLIBC 2.3 source.
32 +
33 + To compile: (either gcc or icc is OK)
34 + icc -c ctype.c
35 +
36 + To use, just add the object file ctype.o at link stage. Example:
37 + ifc -o hello hello.f ctype.o
38 +
39 +*/
40 +
41 +
42 +/* Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
43 + This file is part of the GNU C Library.
44 + Contributed by Ulrich Drepper <drepper@cygnus.com>, 1995.
45 +
46 + The GNU C Library is free software; you can redistribute it and/or
47 + modify it under the terms of the GNU Lesser General Public
48 + License as published by the Free Software Foundation; either
49 + version 2.1 of the License, or (at your option) any later version.
50 +
51 + The GNU C Library is distributed in the hope that it will be useful,
52 + but WITHOUT ANY WARRANTY; without even the implied warranty of
53 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
54 + Lesser General Public License for more details.
55 +
56 + You should have received a copy of the GNU Lesser General Public
57 + License along with the GNU C Library; if not, write to the Free
58 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
59 + 02111-1307 USA. */
60 +
61 +#include <stdint.h>
62 +
63 +/* This table's entries are taken from POSIX.2 Table 2-6
64 + ``LC_CTYPE Category Definition in the POSIX Locale''.
65 +
66 + The `_nl_C_LC_CTYPE_width' array is a GNU extension.
67 +
68 + In the `_nl_C_LC_CTYPE_class' array the value for EOF (== -1)
69 + is set to always return 0 and the conversion arrays return EOF. */
70 +
71 +const char _nl_C_LC_CTYPE_class[768] =
72 + /* 0x80 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
73 + /* 0x86 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
74 + /* 0x8c */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
75 + /* 0x92 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
76 + /* 0x98 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
77 + /* 0x9e */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
78 + /* 0xa4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
79 + /* 0xaa */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
80 + /* 0xb0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
81 + /* 0xb6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
82 + /* 0xbc */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
83 + /* 0xc2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
84 + /* 0xc8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
85 + /* 0xce */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
86 + /* 0xd4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
87 + /* 0xda */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
88 + /* 0xe0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
89 + /* 0xe6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
90 + /* 0xec */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
91 + /* 0xf2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
92 + /* 0xf8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
93 + /* 0xfe */ "\000\000" "\000\000" "\002\000" "\002\000" "\002\000" "\002\000"
94 + /* 0x04 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\003\040"
95 + /* 0x0a */ "\002\040" "\002\040" "\002\040" "\002\040" "\002\000" "\002\000"
96 + /* 0x10 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\002\000"
97 + /* 0x16 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\002\000"
98 + /* 0x1c */ "\002\000" "\002\000" "\002\000" "\002\000" "\001\140" "\004\300"
99 + /* 0x22 */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
100 + /* 0x28 */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
101 + /* 0x2e */ "\004\300" "\004\300" "\010\330" "\010\330" "\010\330" "\010\330"
102 + /* 0x34 */ "\010\330" "\010\330" "\010\330" "\010\330" "\010\330" "\010\330"
103 + /* 0x3a */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
104 + /* 0x40 */ "\004\300" "\010\325" "\010\325" "\010\325" "\010\325" "\010\325"
105 + /* 0x46 */ "\010\325" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
106 + /* 0x4c */ "\010\305" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
107 + /* 0x52 */ "\010\305" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
108 + /* 0x58 */ "\010\305" "\010\305" "\010\305" "\004\300" "\004\300" "\004\300"
109 + /* 0x5e */ "\004\300" "\004\300" "\004\300" "\010\326" "\010\326" "\010\326"
110 + /* 0x64 */ "\010\326" "\010\326" "\010\326" "\010\306" "\010\306" "\010\306"
111 + /* 0x6a */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\010\306"
112 + /* 0x70 */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\010\306"
113 + /* 0x76 */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\004\300"
114 + /* 0x7c */ "\004\300" "\004\300" "\004\300" "\002\000" "\000\000" "\000\000"
115 + /* 0x82 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
116 + /* 0x88 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
117 + /* 0x8e */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
118 + /* 0x94 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
119 + /* 0x9a */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
120 + /* 0xa0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
121 + /* 0xa6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
122 + /* 0xac */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
123 + /* 0xb2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
124 + /* 0xb8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
125 + /* 0xbe */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
126 + /* 0xc4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
127 + /* 0xca */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
128 + /* 0xd0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
129 + /* 0xd6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
130 + /* 0xdc */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
131 + /* 0xe2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
132 + /* 0xe8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
133 + /* 0xee */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
134 + /* 0xf4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
135 + /* 0xfa */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
136 +;
137 +const char _nl_C_LC_CTYPE_class32[1024] =
138 + /* 0x00 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
139 + /* 0x03 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
140 + /* 0x06 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
141 + /* 0x09 */ "\000\000\003\040" "\000\000\002\040" "\000\000\002\040"
142 + /* 0x0c */ "\000\000\002\040" "\000\000\002\040" "\000\000\002\000"
143 + /* 0x0f */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
144 + /* 0x12 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
145 + /* 0x15 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
146 + /* 0x18 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
147 + /* 0x1b */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
148 + /* 0x1e */ "\000\000\002\000" "\000\000\002\000" "\000\000\001\140"
149 + /* 0x21 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
150 + /* 0x24 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
151 + /* 0x27 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
152 + /* 0x2a */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
153 + /* 0x2d */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
154 + /* 0x30 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
155 + /* 0x33 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
156 + /* 0x36 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
157 + /* 0x39 */ "\000\000\010\330" "\000\000\004\300" "\000\000\004\300"
158 + /* 0x3c */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
159 + /* 0x3f */ "\000\000\004\300" "\000\000\004\300" "\000\000\010\325"
160 + /* 0x42 */ "\000\000\010\325" "\000\000\010\325" "\000\000\010\325"
161 + /* 0x45 */ "\000\000\010\325" "\000\000\010\325" "\000\000\010\305"
162 + /* 0x48 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
163 + /* 0x4b */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
164 + /* 0x4e */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
165 + /* 0x51 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
166 + /* 0x54 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
167 + /* 0x57 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
168 + /* 0x5a */ "\000\000\010\305" "\000\000\004\300" "\000\000\004\300"
169 + /* 0x5d */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
170 + /* 0x60 */ "\000\000\004\300" "\000\000\010\326" "\000\000\010\326"
171 + /* 0x63 */ "\000\000\010\326" "\000\000\010\326" "\000\000\010\326"
172 + /* 0x66 */ "\000\000\010\326" "\000\000\010\306" "\000\000\010\306"
173 + /* 0x69 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
174 + /* 0x6c */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
175 + /* 0x6f */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
176 + /* 0x72 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
177 + /* 0x75 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
178 + /* 0x78 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
179 + /* 0x7b */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
180 + /* 0x7e */ "\000\000\004\300" "\000\000\002\000" "\000\000\000\000"
181 + /* 0x81 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
182 + /* 0x84 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
183 + /* 0x87 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
184 + /* 0x8a */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
185 + /* 0x8d */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
186 + /* 0x90 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
187 + /* 0x93 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
188 + /* 0x96 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
189 + /* 0x99 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
190 + /* 0x9c */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
191 + /* 0x9f */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
192 + /* 0xa2 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
193 + /* 0xa5 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
194 + /* 0xa8 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
195 + /* 0xab */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
196 + /* 0xae */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
197 + /* 0xb1 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
198 + /* 0xb4 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
199 + /* 0xb7 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
200 + /* 0xba */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
201 + /* 0xbd */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
202 + /* 0xc0 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
203 + /* 0xc3 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
204 + /* 0xc6 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
205 + /* 0xc9 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
206 + /* 0xcc */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
207 + /* 0xcf */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
208 + /* 0xd2 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
209 + /* 0xd5 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
210 + /* 0xd8 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
211 + /* 0xdb */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
212 + /* 0xde */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
213 + /* 0xe1 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
214 + /* 0xe4 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
215 + /* 0xe7 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
216 + /* 0xea */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
217 + /* 0xed */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
218 + /* 0xf0 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
219 + /* 0xf3 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
220 + /* 0xf6 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
221 + /* 0xf9 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
222 + /* 0xfc */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
223 + /* 0xff */ "\000\000\000\000"
224 +;
225 +const uint32_t _nl_C_LC_CTYPE_toupper[384] =
226 +{
227 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
228 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
229 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
230 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
231 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
232 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
233 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
234 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
235 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
236 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
237 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
238 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
239 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
240 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
241 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
242 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xffffffff,
243 + /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
244 + /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
245 + /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
246 + /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
247 + /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
248 + /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
249 + /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
250 + /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
251 + /* 0x40 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
252 + /* 0x48 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
253 + /* 0x50 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
254 + /* 0x58 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
255 + /* 0x60 */ 0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
256 + /* 0x68 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
257 + /* 0x70 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
258 + /* 0x78 */ 0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
259 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
260 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
261 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
262 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
263 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
264 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
265 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
266 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
267 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
268 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
269 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
270 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
271 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
272 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
273 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
274 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
275 +};
276 +const uint32_t _nl_C_LC_CTYPE_tolower[384] =
277 +{
278 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
279 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
280 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
281 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
282 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
283 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
284 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
285 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
286 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
287 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
288 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
289 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
290 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
291 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
292 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
293 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xffffffff,
294 + /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
295 + /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
296 + /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
297 + /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
298 + /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
299 + /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
300 + /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
301 + /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
302 + /* 0x40 */ 0x40, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
303 + /* 0x48 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
304 + /* 0x50 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
305 + /* 0x58 */ 0x78, 0x79, 0x7a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
306 + /* 0x60 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
307 + /* 0x68 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
308 + /* 0x70 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
309 + /* 0x78 */ 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
310 + /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
311 + /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
312 + /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
313 + /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
314 + /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
315 + /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
316 + /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
317 + /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
318 + /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
319 + /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
320 + /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
321 + /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
322 + /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
323 + /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
324 + /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
325 + /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
326 +};
327 +
328 +#define STRUCT_CTYPE_CLASS(p, q) \
329 + struct \
330 + { \
331 + uint32_t isctype_data[8]; \
332 + uint32_t header[5]; \
333 + uint32_t level1[1]; \
334 + uint32_t level2[1 << q]; \
335 + uint32_t level3[1 << p]; \
336 + }
337 +
338 +const STRUCT_CTYPE_CLASS(1, 1) _nl_C_LC_CTYPE_class_upper =
339 +{
340 + { 0x00000000, 0x00000000, 0x07fffffe, 0x00000000,
341 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
342 + },
343 + { 7, 1, 6, 1, 1 },
344 + /* 1st-level table */
345 + { 6 * sizeof (uint32_t) },
346 + /* 2nd-level table */
347 + { 0, 8 * sizeof (uint32_t) },
348 + /* 3rd-level table */
349 + { 0x07fffffe, 0x00000000 }
350 +};
351 +const STRUCT_CTYPE_CLASS(1, 1) _nl_C_LC_CTYPE_class_lower =
352 +{
353 + { 0x00000000, 0x00000000, 0x00000000, 0x07fffffe,
354 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
355 + },
356 + { 7, 1, 6, 1, 1 },
357 + /* 1st-level table */
358 + { 6 * sizeof (uint32_t) },
359 + /* 2nd-level table */
360 + { 0, 8 * sizeof (uint32_t) },
361 + /* 3rd-level table */
362 + { 0x00000000, 0x07fffffe }
363 +};
364 +const STRUCT_CTYPE_CLASS(1, 1) _nl_C_LC_CTYPE_class_alpha =
365 +{
366 + { 0x00000000, 0x00000000, 0x07fffffe, 0x07fffffe,
367 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
368 + },
369 + { 7, 1, 6, 1, 1 },
370 + /* 1st-level table */
371 + { 6 * sizeof (uint32_t) },
372 + /* 2nd-level table */
373 + { 0, 8 * sizeof (uint32_t) },
374 + /* 3rd-level table */
375 + { 0x07fffffe, 0x07fffffe }
376 +};
377 +const STRUCT_CTYPE_CLASS(1, 0) _nl_C_LC_CTYPE_class_digit =
378 +{
379 + { 0x00000000, 0x03ff0000, 0x00000000, 0x00000000,
380 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
381 + },
382 + { 6, 1, 6, 0, 1 },
383 + /* 1st-level table */
384 + { 6 * sizeof (uint32_t) },
385 + /* 2nd-level table */
386 + { 7 * sizeof (uint32_t) },
387 + /* 3rd-level table */
388 + { 0x00000000, 0x03ff0000 }
389 +};
390 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_xdigit =
391 +{
392 + { 0x00000000, 0x03ff0000, 0x0000007e, 0x0000007e,
393 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
394 + },
395 + { 7, 1, 7, 0, 3 },
396 + /* 1st-level table */
397 + { 6 * sizeof (uint32_t) },
398 + /* 2nd-level table */
399 + { 7 * sizeof (uint32_t) },
400 + /* 3rd-level table */
401 + { 0x00000000, 0x03ff0000, 0x0000007e, 0x0000007e }
402 +};
403 +const STRUCT_CTYPE_CLASS(1, 0) _nl_C_LC_CTYPE_class_space =
404 +{
405 + { 0x00003e00, 0x00000001, 0x00000000, 0x00000000,
406 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
407 + },
408 + { 6, 1, 6, 0, 1 },
409 + /* 1st-level table */
410 + { 6 * sizeof (uint32_t) },
411 + /* 2nd-level table */
412 + { 7 * sizeof (uint32_t) },
413 + /* 3rd-level table */
414 + { 0x00003e00, 0x00000001 }
415 +};
416 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_print =
417 +{
418 + { 0x00000000, 0xffffffff, 0xffffffff, 0x7fffffff,
419 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
420 + },
421 + { 7, 1, 7, 0, 3 },
422 + /* 1st-level table */
423 + { 6 * sizeof (uint32_t) },
424 + /* 2nd-level table */
425 + { 7 * sizeof (uint32_t) },
426 + /* 3rd-level table */
427 + { 0x00000000, 0xffffffff, 0xffffffff, 0x7fffffff }
428 +};
429 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_graph =
430 +{
431 + { 0x00000000, 0xfffffffe, 0xffffffff, 0x7fffffff,
432 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
433 + },
434 + { 7, 1, 7, 0, 3 },
435 + /* 1st-level table */
436 + { 6 * sizeof (uint32_t) },
437 + /* 2nd-level table */
438 + { 7 * sizeof (uint32_t) },
439 + /* 3rd-level table */
440 + { 0x00000000, 0xfffffffe, 0xffffffff, 0x7fffffff }
441 +};
442 +const STRUCT_CTYPE_CLASS(1, 0) _nl_C_LC_CTYPE_class_blank =
443 +{
444 + { 0x00000200, 0x00000001, 0x00000000, 0x00000000,
445 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
446 + },
447 + { 6, 1, 6, 0, 1 },
448 + /* 1st-level table */
449 + { 6 * sizeof (uint32_t) },
450 + /* 2nd-level table */
451 + { 7 * sizeof (uint32_t) },
452 + /* 3rd-level table */
453 + { 0x00000200, 0x00000001 }
454 +};
455 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_cntrl =
456 +{
457 + { 0xffffffff, 0x00000000, 0x00000000, 0x80000000,
458 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
459 + },
460 + { 7, 1, 7, 0, 3 },
461 + /* 1st-level table */
462 + { 6 * sizeof (uint32_t) },
463 + /* 2nd-level table */
464 + { 7 * sizeof (uint32_t) },
465 + /* 3rd-level table */
466 + { 0xffffffff, 0x00000000, 0x00000000, 0x80000000 }
467 +};
468 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_punct =
469 +{
470 + { 0x00000000, 0xfc00fffe, 0xf8000001, 0x78000001,
471 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
472 + },
473 + { 7, 1, 7, 0, 3 },
474 + /* 1st-level table */
475 + { 6 * sizeof (uint32_t) },
476 + /* 2nd-level table */
477 + { 7 * sizeof (uint32_t) },
478 + /* 3rd-level table */
479 + { 0x00000000, 0xfc00fffe, 0xf8000001, 0x78000001 }
480 +};
481 +const STRUCT_CTYPE_CLASS(2, 0) _nl_C_LC_CTYPE_class_alnum =
482 +{
483 + { 0x00000000, 0x03ff0000, 0x07fffffe, 0x07fffffe,
484 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
485 + },
486 + { 7, 1, 7, 0, 3 },
487 + /* 1st-level table */
488 + { 6 * sizeof (uint32_t) },
489 + /* 2nd-level table */
490 + { 7 * sizeof (uint32_t) },
491 + /* 3rd-level table */
492 + { 0x00000000, 0x03ff0000, 0x07fffffe, 0x07fffffe }
493 +};
494 +
495 +const struct
496 +{
497 + uint32_t header[5];
498 + uint32_t level1[1];
499 + uint32_t level2[4];
500 + int32_t level3[32];
501 +}
502 +_nl_C_LC_CTYPE_map_toupper =
503 +{
504 + { 7, 1, 5, 3, 31 },
505 + /* 1st-level table */
506 + { 6 * sizeof (uint32_t) },
507 + /* 2nd-level table */
508 + { 0, 0, 0, 10 * sizeof (uint32_t) },
509 + /* 3rd-level table */
510 + {
511 + 0x00000000, 0xffffffe0, 0xffffffe0, 0xffffffe0,
512 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
513 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
514 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
515 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
516 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0,
517 + 0xffffffe0, 0xffffffe0, 0xffffffe0, 0x00000000,
518 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
519 + }
520 +},
521 +_nl_C_LC_CTYPE_map_tolower =
522 +{
523 + { 7, 1, 5, 3, 31 },
524 + /* 1st-level table */
525 + { 6 * sizeof (uint32_t) },
526 + /* 2nd-level table */
527 + { 0, 0, 10 * sizeof (uint32_t), 0 },
528 + /* 3rd-level table */
529 + {
530 + 0x00000000, 0x00000020, 0x00000020, 0x00000020,
531 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
532 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
533 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
534 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
535 + 0x00000020, 0x00000020, 0x00000020, 0x00000020,
536 + 0x00000020, 0x00000020, 0x00000020, 0x00000000,
537 + 0x00000000, 0x00000000, 0x00000000, 0x00000000
538 + }
539 +};
540 +
541 +#define b(t,x,o) (((const t *) _nl_C_LC_CTYPE_##x) + o)
542 +
543 +const uint16_t *__ctype_b = b (uint16_t, class, 128);
544 +const uint32_t *__ctype32_b = b (uint32_t, class32, 0);
545 +const int32_t *__ctype_tolower = b (int32_t, tolower, 128);
546 +const int32_t *__ctype_toupper = b (int32_t, toupper, 128);
547 +const uint32_t *__ctype32_tolower = b (uint32_t, tolower, 128);
548 +const uint32_t *__ctype32_toupper = b (uint32_t, toupper, 128);
549 +
550 --- a/src/Makefile.in
551 +++ b/src/Makefile.in
552 @@ -1234,6 +1234,9 @@ squid.conf.default: cf_parser.h
553 true
554
555 cf_parser.h: cf.data cf_gen$(EXEEXT)
556 + rm -f cf_gen
557 + gcc -c ctype.c
558 + gcc -o cf_gen cf_gen.c -DNODEBUG=1 -I./ -I../ -I../include/ -L../lib -lmiscutil$(shell uname -m) -lm -lnsl -Wl,ctype.o
559 ./cf_gen cf.data $(srcdir)/cf.data.depend
560
561 cf_gen_defines.h: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre