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