diff options
author | McCabe Maxsted | 2009-02-17 22:02:45 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-02-17 22:02:45 -0700 |
commit | 30b9fd9f0fe44b820d51a47c9aab135127b82b59 (patch) | |
tree | 8101044c037263c3bf1273d57909cda05db380f1 /linden | |
parent | Backported Top Scripts changes from 1.22 (diff) | |
download | meta-impy-30b9fd9f0fe44b820d51a47c9aab135127b82b59.zip meta-impy-30b9fd9f0fe44b820d51a47c9aab135127b82b59.tar.gz meta-impy-30b9fd9f0fe44b820d51a47c9aab135127b82b59.tar.bz2 meta-impy-30b9fd9f0fe44b820d51a47c9aab135127b82b59.tar.xz |
Backported LLSD changes from 1.22
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llcommon/llsdserialize.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llsdserialize_xml.cpp | 13 | ||||
-rw-r--r-- | linden/indra/llmessage/message_prehash.cpp | 1 | ||||
-rw-r--r-- | linden/indra/llmessage/message_prehash.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/llfloatertopobjects.cpp | 2 |
5 files changed, 10 insertions, 9 deletions
diff --git a/linden/indra/llcommon/llsdserialize.cpp b/linden/indra/llcommon/llsdserialize.cpp index d42842d..f21ff68 100644 --- a/linden/indra/llcommon/llsdserialize.cpp +++ b/linden/indra/llcommon/llsdserialize.cpp | |||
@@ -324,7 +324,7 @@ S32 LLSDParser::parse(std::istream& istr, LLSD& data, S32 max_bytes) | |||
324 | S32 LLSDParser::parseLines(std::istream& istr, LLSD& data) | 324 | S32 LLSDParser::parseLines(std::istream& istr, LLSD& data) |
325 | { | 325 | { |
326 | mCheckLimits = false; | 326 | mCheckLimits = false; |
327 | mParseLines = false; // was true, Emergency fix DEV-17785 parsing newline failure | 327 | mParseLines = true; |
328 | return doParse(istr, data); | 328 | return doParse(istr, data); |
329 | } | 329 | } |
330 | 330 | ||
diff --git a/linden/indra/llcommon/llsdserialize_xml.cpp b/linden/indra/llcommon/llsdserialize_xml.cpp index 690ab67..9c3f85e 100644 --- a/linden/indra/llcommon/llsdserialize_xml.cpp +++ b/linden/indra/llcommon/llsdserialize_xml.cpp | |||
@@ -461,11 +461,11 @@ S32 LLSDXMLParser::Impl::parseLines(std::istream& input, LLSD& data) | |||
461 | input.clear(); | 461 | input.clear(); |
462 | } | 462 | } |
463 | 463 | ||
464 | // Don't parse the NULL at the end which might be added if \n was absorbed by getline() | 464 | // Re-insert with the \n that was absorbed by getline() |
465 | char * text = (char *) buffer; | 465 | char * text = (char *) buffer; |
466 | if ( text[num_read - 1] == 0) | 466 | if ( text[num_read - 1] == 0) |
467 | { | 467 | { |
468 | num_read--; | 468 | text[num_read - 1] = '\n'; |
469 | } | 469 | } |
470 | } | 470 | } |
471 | 471 | ||
@@ -808,12 +808,11 @@ void LLSDXMLParser::parsePart(const char *buf, int len) | |||
808 | // virtual | 808 | // virtual |
809 | S32 LLSDXMLParser::doParse(std::istream& input, LLSD& data) const | 809 | S32 LLSDXMLParser::doParse(std::istream& input, LLSD& data) const |
810 | { | 810 | { |
811 | // Remove code - emergency fix DEV-17785 parsing newline failure | 811 | if (mParseLines) |
812 | // if (mParseLines) | 812 | { |
813 | // { | ||
814 | // Use line-based reading (faster code) | 813 | // Use line-based reading (faster code) |
815 | // return impl.parseLines(input, data); | 814 | return impl.parseLines(input, data); |
816 | // } | 815 | } |
817 | 816 | ||
818 | return impl.parse(input, data); | 817 | return impl.parse(input, data); |
819 | } | 818 | } |
diff --git a/linden/indra/llmessage/message_prehash.cpp b/linden/indra/llmessage/message_prehash.cpp index 2ac1319..fd8953d 100644 --- a/linden/indra/llmessage/message_prehash.cpp +++ b/linden/indra/llmessage/message_prehash.cpp | |||
@@ -598,6 +598,7 @@ char* _PREHASH_FromAgentId = LLMessageStringTable::getInstance()->getString("Fro | |||
598 | char* _PREHASH_Type = LLMessageStringTable::getInstance()->getString("Type"); | 598 | char* _PREHASH_Type = LLMessageStringTable::getInstance()->getString("Type"); |
599 | char* _PREHASH_ChatType = LLMessageStringTable::getInstance()->getString("ChatType"); | 599 | char* _PREHASH_ChatType = LLMessageStringTable::getInstance()->getString("ChatType"); |
600 | char* _PREHASH_ReportData = LLMessageStringTable::getInstance()->getString("ReportData"); | 600 | char* _PREHASH_ReportData = LLMessageStringTable::getInstance()->getString("ReportData"); |
601 | char* _PREHASH_MonoScore = LLMessageStringTable::getInstance()->getString("MonoScore"); | ||
601 | char* _PREHASH_RequestBlock = LLMessageStringTable::getInstance()->getString("RequestBlock"); | 602 | char* _PREHASH_RequestBlock = LLMessageStringTable::getInstance()->getString("RequestBlock"); |
602 | char* _PREHASH_GrantData = LLMessageStringTable::getInstance()->getString("GrantData"); | 603 | char* _PREHASH_GrantData = LLMessageStringTable::getInstance()->getString("GrantData"); |
603 | char* _PREHASH_DetachAttachmentIntoInv = LLMessageStringTable::getInstance()->getString("DetachAttachmentIntoInv"); | 604 | char* _PREHASH_DetachAttachmentIntoInv = LLMessageStringTable::getInstance()->getString("DetachAttachmentIntoInv"); |
diff --git a/linden/indra/llmessage/message_prehash.h b/linden/indra/llmessage/message_prehash.h index 0ee02be..8b8c857 100644 --- a/linden/indra/llmessage/message_prehash.h +++ b/linden/indra/llmessage/message_prehash.h | |||
@@ -598,6 +598,7 @@ extern char * _PREHASH_FromAgentId; | |||
598 | extern char * _PREHASH_Type; | 598 | extern char * _PREHASH_Type; |
599 | extern char * _PREHASH_ChatType; | 599 | extern char * _PREHASH_ChatType; |
600 | extern char * _PREHASH_ReportData; | 600 | extern char * _PREHASH_ReportData; |
601 | extern char * _PREHASH_MonoScore; | ||
601 | extern char * _PREHASH_RequestBlock; | 602 | extern char * _PREHASH_RequestBlock; |
602 | extern char * _PREHASH_GrantData; | 603 | extern char * _PREHASH_GrantData; |
603 | extern char * _PREHASH_DetachAttachmentIntoInv; | 604 | extern char * _PREHASH_DetachAttachmentIntoInv; |
diff --git a/linden/indra/newview/llfloatertopobjects.cpp b/linden/indra/newview/llfloatertopobjects.cpp index 0afa618..e4c90f0 100644 --- a/linden/indra/newview/llfloatertopobjects.cpp +++ b/linden/indra/newview/llfloatertopobjects.cpp | |||
@@ -184,7 +184,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data) | |||
184 | { | 184 | { |
185 | have_extended_data = true; | 185 | have_extended_data = true; |
186 | msg->getU32("DataExtended", "TimeStamp", time_stamp, block); | 186 | msg->getU32("DataExtended", "TimeStamp", time_stamp, block); |
187 | msg->getF32(_PREHASH_ReportData, "MonoScore", mono_score, block); | 187 | msg->getF32("DataExtended", "MonoScore", mono_score, block); |
188 | } | 188 | } |
189 | 189 | ||
190 | LLSD element; | 190 | LLSD element; |