|
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
HttpHeaderTools.cc: In function 'int httpHeaderParseQuotedString(const char*, String*)':
HttpHeaderTools.cc:359: error: 'index' was not declared in this scope
make[4]: *** [HttpHeaderTools.o] 错误 1
make[4]: *** 正在等待未完成的任务....
make[4]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/src'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91'
make: *** [/root/floppy/build-tools/buildroot/output/build/squid-3.0.STABLE91/.stamp_built] 错误 2
HttpHeaderTools.cc:359 的内容:
/* Parses a quoted-string field (RFC 2616 section 2.2), complains if
* something went wrong, returns non-zero on success.
* start should point at the first ".
* RC TODO: This is too looose. We should honour the BNF and exclude CTL's
*/
int
httpHeaderParseQuotedString (const char *start, String *val)
{
const char *end, *pos;
val->clean();
assert (*start == '"');
pos = start + 1;
while (1) {
if (!(end = index (pos,'"'))) {
debugs(66, 2, "failed to parse a quoted-string header field near '" << start << "'");
return 0;
}
/* check for quoted-chars */
if (*(end - 1) != '\\') {
/* done */
val->append(start + 1, end-start-1);
return 1;
}
/* try for the end again */
pos = end + 1;
}
} |
|