Update lz4, lz5 and zstd to latest stable series

- added some more error checking in zstdmt also
This commit is contained in:
Tino Reichardt
2016-12-24 12:17:51 +01:00
parent 4c28e3fa11
commit 294d1ece66
42 changed files with 1324 additions and 723 deletions

View File

@@ -32,12 +32,11 @@ unsigned LZ4MT_isError(size_t code)
*/
const char *LZ4MT_getErrorString(size_t code)
{
static const char *notErrorCode = "Unspecified error lz4mt code";
if (LZ4F_isError(lz4mt_errcode))
return LZ4F_getErrorName(lz4mt_errcode);
switch ((LZ4MT_ErrorCode)(0-code)) {
static const char *notErrorCode = "Unspecified error lz4mt code";
switch ((LZ4MT_ErrorCode) (0 - code)) {
case PREFIX(no_error):
return "No error detected";
case PREFIX(memory_allocation):