Mercurial > public > mercurial-scm > hg
comparison contrib/python-zstandard/zstd/common/zstd_common.c @ 42070:675775c33ab6
zstandard: vendor python-zstandard 0.11
The upstream source distribution from PyPI was extracted. Unwanted
files were removed.
The clang-format ignore list was updated to reflect the new source
of files.
The project contains a vendored copy of zstandard 1.3.8. The old
version was 1.3.6. This should result in some minor performance wins.
test-check-py3-compat.t was updated to reflect now-passing tests on
Python 3.8.
Some HTTP tests were updated to reflect new zstd compression output.
# no-check-commit because 3rd party code has different style guidelines
Differential Revision: https://phab.mercurial-scm.org/D6199
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 04 Apr 2019 17:34:43 -0700 |
parents | 73fef626dae3 |
children |
comparison
equal
deleted
inserted
replaced
42069:668eff08387f | 42070:675775c33ab6 |
---|---|
28 | 28 |
29 | 29 |
30 /*-**************************************** | 30 /*-**************************************** |
31 * ZSTD Error Management | 31 * ZSTD Error Management |
32 ******************************************/ | 32 ******************************************/ |
33 #undef ZSTD_isError /* defined within zstd_internal.h */ | |
33 /*! ZSTD_isError() : | 34 /*! ZSTD_isError() : |
34 * tells if a return value is an error code */ | 35 * tells if a return value is an error code |
36 * symbol is required for external callers */ | |
35 unsigned ZSTD_isError(size_t code) { return ERR_isError(code); } | 37 unsigned ZSTD_isError(size_t code) { return ERR_isError(code); } |
36 | 38 |
37 /*! ZSTD_getErrorName() : | 39 /*! ZSTD_getErrorName() : |
38 * provides error code string from function result (useful for debugging) */ | 40 * provides error code string from function result (useful for debugging) */ |
39 const char* ZSTD_getErrorName(size_t code) { return ERR_getErrorName(code); } | 41 const char* ZSTD_getErrorName(size_t code) { return ERR_getErrorName(code); } |