No longer include llerrorlegacy.h. Updated llstl to include deletion utilites.
This commit is contained in:
@@ -82,7 +82,7 @@ void LLSDSerialize::serialize(const LLSD& sd, std::ostream& str, ELLSD_Serialize
|
||||
break;
|
||||
|
||||
default:
|
||||
llwarns << "serialize request for unknown ELLSD_Serialize" << llendl;
|
||||
LL_WARNS() << "serialize request for unknown ELLSD_Serialize" << LL_ENDL;
|
||||
}
|
||||
|
||||
if (f.notNull())
|
||||
@@ -170,7 +170,7 @@ bool LLSDSerialize::deserialize(LLSD& sd, std::istream& str, S32 max_bytes)
|
||||
}
|
||||
else
|
||||
{
|
||||
llwarns << "deserialize request for unknown ELLSD_Serialize" << llendl;
|
||||
LL_WARNS() << "deserialize request for unknown ELLSD_Serialize" << LL_ENDL;
|
||||
}
|
||||
|
||||
if (p.notNull())
|
||||
@@ -180,7 +180,7 @@ bool LLSDSerialize::deserialize(LLSD& sd, std::istream& str, S32 max_bytes)
|
||||
}
|
||||
|
||||
fail:
|
||||
llwarns << "deserialize LLSD parse failure" << llendl;
|
||||
LL_WARNS() << "deserialize LLSD parse failure" << LL_ENDL;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading map." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading map." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -465,7 +465,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading array." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading array." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -501,7 +501,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading boolean." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading boolean." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -527,7 +527,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading boolean." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading boolean." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -540,7 +540,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = integer;
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading integer." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading integer." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -554,7 +554,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = real;
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading real." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading real." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -568,7 +568,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = id;
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading uuid." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading uuid." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -583,7 +583,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading string." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading string." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -605,7 +605,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading link." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading link." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -628,7 +628,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading date." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading date." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -641,14 +641,14 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading data." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading data." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
parse_count = PARSE_FAILURE;
|
||||
llinfos << "Unrecognized character while parsing: int(" << (int)c
|
||||
LL_INFOS() << "Unrecognized character while parsing: int(" << (int)c
|
||||
<< ")" << LL_ENDL;
|
||||
break;
|
||||
}
|
||||
@@ -910,7 +910,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary map." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary map." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -929,7 +929,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary array." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary array." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -954,7 +954,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = (S32)ntohl(value_nbo);
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary integer." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary integer." << LL_ENDL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -966,7 +966,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = ll_ntohd(real_nbo);
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary real." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary real." << LL_ENDL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -978,7 +978,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = id;
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary uuid." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary uuid." << LL_ENDL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -999,7 +999,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary (notation-style) string."
|
||||
LL_INFOS() << "STREAM FAILURE reading binary (notation-style) string."
|
||||
<< LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
@@ -1019,7 +1019,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary string." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary string." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -1038,7 +1038,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary link." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary link." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -1051,7 +1051,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
data = LLDate(real);
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary date." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary date." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -1080,7 +1080,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
}
|
||||
if(istr.fail())
|
||||
{
|
||||
llinfos << "STREAM FAILURE reading binary." << llendl;
|
||||
LL_INFOS() << "STREAM FAILURE reading binary." << LL_ENDL;
|
||||
parse_count = PARSE_FAILURE;
|
||||
}
|
||||
break;
|
||||
@@ -1088,7 +1088,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const
|
||||
|
||||
default:
|
||||
parse_count = PARSE_FAILURE;
|
||||
llinfos << "Unrecognized character while parsing: int(" << (int)c
|
||||
LL_INFOS() << "Unrecognized character while parsing: int(" << (int)c
|
||||
<< ")" << LL_ENDL;
|
||||
break;
|
||||
}
|
||||
@@ -2059,7 +2059,7 @@ std::string zip_llsd(LLSD& data)
|
||||
S32 ret = deflateInit(&strm, Z_BEST_COMPRESSION);
|
||||
if (ret != Z_OK)
|
||||
{
|
||||
llwarns << "Failed to compress LLSD block." << llendl;
|
||||
LL_WARNS() << "Failed to compress LLSD block." << LL_ENDL;
|
||||
return std::string();
|
||||
}
|
||||
|
||||
@@ -2086,7 +2086,7 @@ std::string zip_llsd(LLSD& data)
|
||||
if (strm.avail_out >= CHUNK)
|
||||
{
|
||||
free(output);
|
||||
llwarns << "Failed to compress LLSD block." << llendl;
|
||||
LL_WARNS() << "Failed to compress LLSD block." << LL_ENDL;
|
||||
return std::string();
|
||||
}
|
||||
|
||||
@@ -2098,7 +2098,7 @@ std::string zip_llsd(LLSD& data)
|
||||
else
|
||||
{
|
||||
free(output);
|
||||
llwarns << "Failed to compress LLSD block." << llendl;
|
||||
LL_WARNS() << "Failed to compress LLSD block." << LL_ENDL;
|
||||
return std::string();
|
||||
}
|
||||
}
|
||||
@@ -2115,7 +2115,7 @@ std::string zip_llsd(LLSD& data)
|
||||
LLSD test_sd;
|
||||
if (!unzip_llsd(test_sd, test, result.size()))
|
||||
{
|
||||
llerrs << "Invalid compression result!" << llendl;
|
||||
LL_ERRS() << "Invalid compression result!" << LL_ENDL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2200,7 +2200,7 @@ bool unzip_llsd(LLSD& data, std::istream& is, S32 size)
|
||||
|
||||
if (!LLSDSerialize::fromBinary(data, istr, cur_size))
|
||||
{
|
||||
llwarns << "Failed to unzip LLSD block" << llendl;
|
||||
LL_WARNS() << "Failed to unzip LLSD block" << LL_ENDL;
|
||||
free(result);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user