Major changes, including Brotli and Lizard

- update of zstd-mt library
- add brotli v0.6.0
- add lizard v2.0
- xxhash is from zstd for lz4, lz5 and lizard now
- update also the documentation, where needed
This commit is contained in:
Tino Reichardt
2017-05-25 18:40:15 +02:00
parent 40e87f615c
commit 5ff0657d9f
173 changed files with 3936 additions and 6591 deletions

View File

@@ -9,7 +9,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "lz5frame.h"
#include "lizframe.h"
#include "lizard-mt.h"
/* will be used for lib errors */
@@ -32,10 +32,10 @@ unsigned LIZARDMT_isError(size_t code)
*/
const char *LIZARDMT_getErrorString(size_t code)
{
if (LZ5F_isError(lizardmt_errcode))
return LZ5F_getErrorName(lizardmt_errcode);
if (LIZF_isError(lizardmt_errcode))
return LIZF_getErrorName(lizardmt_errcode);
static const char *notErrorCode = "Unspecified error lizardmt code";
static const char *noErrorCode = "Unspecified lizardmt error code";
switch ((LIZARDMT_ErrorCode) (0 - code)) {
case PREFIX(no_error):
return "No error detected";
@@ -57,6 +57,6 @@ const char *LIZARDMT_getErrorString(size_t code)
return "Compression library reports failure";
case PREFIX(maxCode):
default:
return notErrorCode;
return noErrorCode;
}
}