From c5869677d930cb93ca85c93161cf4f1fa871e457 Mon Sep 17 00:00:00 2001
From: Sen Huang
Date: Fri, 16 Apr 2021 09:58:42 -0700
Subject: [PATCH] Moved ZSTD_defaultCLevel() into stable API
---
doc/zstd_manual.html | 6 +-----
lib/zstd.h | 5 +----
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/doc/zstd_manual.html b/doc/zstd_manual.html
index 15857959b..296562e8f 100644
--- a/doc/zstd_manual.html
+++ b/doc/zstd_manual.html
@@ -143,6 +143,7 @@ unsigned ZSTD_isError(size_t code); /*!< tells if a `size_t` fun
const char* ZSTD_getErrorName(size_t code); /*!< provides readable string from an error code */
int ZSTD_minCLevel(void); /*!< minimum negative compression level allowed */
int ZSTD_maxCLevel(void); /*!< maximum compression level available */
+int ZSTD_defaultCLevel(void); /*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT */
Explicit context
@@ -1441,11 +1442,6 @@ size_t ZSTD_freeCCtxParams(ZSTD_CCtx_params* params);
which have troubles handling structures containing memory pointers.
-
-int ZSTD_defaultCLevel();
- Returns the default compression level, specified by ZSTD_CLEVEL_DEFAULT
-
-
Advanced decompression functions
diff --git a/lib/zstd.h b/lib/zstd.h
index b95959a34..416312e5d 100644
--- a/lib/zstd.h
+++ b/lib/zstd.h
@@ -182,6 +182,7 @@ ZSTDLIB_API unsigned ZSTD_isError(size_t code); /*!< tells if a `siz
ZSTDLIB_API const char* ZSTD_getErrorName(size_t code); /*!< provides readable string from an error code */
ZSTDLIB_API int ZSTD_minCLevel(void); /*!< minimum negative compression level allowed */
ZSTDLIB_API int ZSTD_maxCLevel(void); /*!< maximum compression level available */
+ZSTDLIB_API int ZSTD_defaultCLevel(void); /*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT */
/***************************************
@@ -1947,10 +1948,6 @@ ZSTDLIB_API size_t ZSTD_compressStream2_simpleArgs (
const void* src, size_t srcSize, size_t* srcPos,
ZSTD_EndDirective endOp);
-/*! ZSTD_defaultCLevel() :
- * Returns the default compression level, specified by ZSTD_CLEVEL_DEFAULT
- */
-ZSTDLIB_API int ZSTD_defaultCLevel(void);
/***************************************
* Advanced decompression functions
--
2.47.2