aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2022-11-30 00:52:06 +0800
committerLasse Collin <lasse.collin@tukaani.org>2022-11-29 22:29:15 +0200
commit0a72b9ca2fe20082da9b7128fe0d908af947a851 (patch)
treeba2253cdcacd40422dd27c636193821b3d33628f /src/liblzma/api/lzma
parentliblzma: Two fixes to lzma_str_list_filters() API docs. (diff)
downloadxz-0a72b9ca2fe20082da9b7128fe0d908af947a851.tar.xz
liblzma: Improve documentation for string to filter functions.
Diffstat (limited to 'src/liblzma/api/lzma')
-rw-r--r--src/liblzma/api/lzma/filter.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/liblzma/api/lzma/filter.h b/src/liblzma/api/lzma/filter.h
index cb8de5d1..78ef47b3 100644
--- a/src/liblzma/api/lzma/filter.h
+++ b/src/liblzma/api/lzma/filter.h
@@ -544,7 +544,7 @@ extern LZMA_API(lzma_ret) lzma_filter_flags_decode(
* LZMA_PRESET_EXTREME. For partial xz command line syntax compatibility,
* a preset string may start with a single dash "-".
*
- * A filter chain consist of one or more "filtername:opt1=value1,opt2=value2"
+ * A filter chain consists of one or more "filtername:opt1=value1,opt2=value2"
* strings separated by one or more spaces. Leading and trailing spaces are
* ignored. All names and values must be lower-case. Extra commas in the
* option list are ignored. The order of filters is significant: when
@@ -647,10 +647,10 @@ extern LZMA_API(const char *) lzma_str_to_filters(
* specify "6" to lzma_str_to_filters() then lzma_str_from_filters()
* will produce a string containing "lzma2".
*
- * \param str On success *str will be set to point an allocated
- * string describing the given filter chain. Old
- * value is ignored. On error *str is always set
- * to NULL.
+ * \param str On success *str will be set to point to an
+ * allocated string describing the given filter
+ * chain. Old value is ignored. On error *str is
+ * always set to NULL.
* \param filters Array of 1-4 filters and a terminating element
* with .id = LZMA_VLI_UNKNOWN.
* \param flags Bitwise-or of zero or more of the flags
@@ -693,9 +693,10 @@ extern LZMA_API(lzma_ret) lzma_str_from_filters(
* - If LZMA_STR_ALL_FILTERS is used then the list will include also
* those filters that cannot be used in the .xz format (LZMA1).
*
- * \param str On success *str will be set to point an allocated
- * string listing the filters and options. Old value
- * is ignored. On error *str is always set to NULL.
+ * \param str On success *str will be set to point to an
+ * allocated string listing the filters and options.
+ * Old value is ignored. On error *str is always set
+ * to NULL.
* \param filter_id Filter ID or LZMA_VLI_UNKNOWN.
* \param flags Bitwise-or of zero or more of the flags
* LZMA_STR_ALL_FILTERS, LZMA_STR_ENCODER,