From 5a773615950616c2ec2d2357cdaabcb4a7119c8c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 3 Jul 2017 15:21:24 -0700 Subject: [PATCH] fixed wrong function name in comment --- lib/common/zstd_internal.h | 16 +--------------- lib/compress/zstd_compress.c | 1 + 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/common/zstd_internal.h b/lib/common/zstd_internal.h index a0cc938a..f2c4e624 100644 --- a/lib/common/zstd_internal.h +++ b/lib/common/zstd_internal.h @@ -309,20 +309,6 @@ MEM_STATIC U32 ZSTD_highbit32(U32 val) void ZSTD_invalidateRepCodes(ZSTD_CCtx* cctx); -typedef enum { ZSTDb_not_buffered, ZSTDb_buffered } ZSTD_buffered_policy_e; -#if 0 -/*! ZSTD_compressBegin_internal() : - * innermost initialization function. Private use only. - * expects params to be valid. - * must receive dict, or cdict, or none, but not both. - * @return : 0, or an error code */ -size_t ZSTD_compressBegin_internal(ZSTD_CCtx* cctx, - const void* dict, size_t dictSize, - const ZSTD_CDict* cdict, - ZSTD_parameters params, U64 pledgedSrcSize, - ZSTD_buffered_policy_e zbuff); -#endif - /*! ZSTD_initCStream_internal() : * Private use only. Init streaming operation. * expects params to be valid. @@ -333,7 +319,7 @@ size_t ZSTD_initCStream_internal(ZSTD_CStream* zcs, const ZSTD_CDict* cdict, ZSTD_parameters params, unsigned long long pledgedSrcSize); -/*! ZSTD_initCStream_internal() : +/*! ZSTD_compressStream_generic() : * Private use only. To be called from zstdmt_compress.c in single-thread mode. */ size_t ZSTD_compressStream_generic(ZSTD_CStream* zcs, ZSTD_outBuffer* output, diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index f2afe625..2d57bc2d 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -627,6 +627,7 @@ static size_t ZSTD_continueCCtx(ZSTD_CCtx* cctx, ZSTD_parameters params, U64 ple } typedef enum { ZSTDcrp_continue, ZSTDcrp_noMemset } ZSTD_compResetPolicy_e; +typedef enum { ZSTDb_not_buffered, ZSTDb_buffered } ZSTD_buffered_policy_e; /*! ZSTD_resetCCtx_internal() : note : `params` are assumed fully validated at this stage */