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 LZ5MT_isError(size_t code)
*/
const char *LZ5MT_getErrorString(size_t code)
{
static const char *notErrorCode = "Unspecified error lz4mt code";
if (LZ5F_isError(lz5mt_errcode))
return LZ5F_getErrorName(lz5mt_errcode);
switch ((LZ5MT_ErrorCode)(0-code)) {
static const char *notErrorCode = "Unspecified error lz4mt code";
switch ((LZ5MT_ErrorCode) (0 - code)) {
case PREFIX(no_error):
return "No error detected";
case PREFIX(memory_allocation):