]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed wrong function name in comment
authorYann Collet <cyan@fb.com>
Mon, 3 Jul 2017 22:21:24 +0000 (15:21 -0700)
committerYann Collet <cyan@fb.com>
Mon, 3 Jul 2017 22:21:24 +0000 (15:21 -0700)
lib/common/zstd_internal.h
lib/compress/zstd_compress.c

index a0cc938a34cbd0f1b59d6966d4f7f82a03d49a83..f2c4e6249fb89651fb1a7473aba351d92ca1496d 100644 (file)
@@ -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,
index f2afe625a8ce19aa2e0da92f439434c1f444ce2a..2d57bc2d05e8fd422c5686c7af218047d34f25eb 100644 (file)
@@ -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 */