From: Yann Collet Date: Sun, 26 Jun 2016 15:42:15 +0000 (+0200) Subject: Improved comments X-Git-Tag: v0.7.2^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63b5e7a2ea1043e44979b68e1bfcef1f146e337d;p=thirdparty%2Fzstd.git Improved comments --- diff --git a/lib/common/zbuff.h b/lib/common/zbuff.h index e449f6d3b..65f01e563 100644 --- a/lib/common/zbuff.h +++ b/lib/common/zbuff.h @@ -44,10 +44,8 @@ extern "C" { /* *************************************************************** * Compiler specifics *****************************************************************/ -/*! -* ZSTD_DLL_EXPORT : -* Enable exporting of functions when building a Windows DLL -*/ +/* ZSTD_DLL_EXPORT : +* Enable exporting of functions when building a Windows DLL */ #if defined(_WIN32) && defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) # define ZSTDLIB_API __declspec(dllexport) #else @@ -103,8 +101,8 @@ ZSTDLIB_API size_t ZBUFF_compressEnd(ZBUFF_CCtx* cctx, void* dst, size_t* dstCap * @return : nb of bytes still present into internal buffer (0 if it's empty) * or an error code, which can be tested using ZBUFF_isError(). * -* Hint : recommended buffer sizes (not compulsory) : ZBUFF_recommendedCInSize / ZBUFF_recommendedCOutSize -* input : ZBUFF_recommendedCInSize==128 KB block size is the internal unit, it improves latency to use this value (skipped buffering). +* Hint : _recommended buffer_ sizes (not compulsory) : ZBUFF_recommendedCInSize() / ZBUFF_recommendedCOutSize() +* input : ZBUFF_recommendedCInSize==128 KB block size is the internal unit, use this value to reduce intermediate stages (better latency) * output : ZBUFF_recommendedCOutSize==ZSTD_compressBound(128 KB) + 3 + 3 : ensures it's always possible to write/flush/end a full block. Skip some buffering. * By using both, it ensures that input will be entirely consumed, and output will always contain the result, reducing intermediate buffering. * **************************************************/ diff --git a/lib/common/zstd_internal.h b/lib/common/zstd_internal.h index 0909955a9..7989e6aca 100644 --- a/lib/common/zstd_internal.h +++ b/lib/common/zstd_internal.h @@ -233,6 +233,6 @@ int ZSTD_isSkipFrame(ZSTD_DCtx* dctx); /* custom memory allocation functions */ void* ZSTD_defaultAllocFunction(void* opaque, size_t size); void ZSTD_defaultFreeFunction(void* opaque, void* address); -static ZSTD_customMem const defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL }; +static const ZSTD_customMem defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL }; #endif /* ZSTD_CCOMMON_H_MODULE */ diff --git a/projects/README.md b/projects/README.md index b6831ce29..c2fa7478f 100644 --- a/projects/README.md +++ b/projects/README.md @@ -1,4 +1,4 @@ -projects for various integrated development environments (IDE) +projects for various integrated development environments (IDE) ================================ #### Included projects @@ -7,3 +7,4 @@ The following projects are included with the zstd distribution: - cmake - CMake project contributed by Artyom Dymchenko - VS2008 - Visual Studio 2008 project - VS2010 - Visual Studio 2010 project (which also works well with Visual Studio 2012, 2013, 2015) +- build - command line scripts prepared for Visual Studio compilation without IDE