]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: API doc cleanups
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 23 Apr 2024 22:20:26 +0000 (01:20 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:12:07 +0000 (00:12 +0300)
(cherry picked from commit 08ab0966a75b501aa7c717622223f0c13a113c75)

src/liblzma/api/lzma/container.h
src/liblzma/api/lzma/index.h
src/liblzma/api/lzma/vli.h

index 2849fbfd3c51a8a44c2b0c9d2aaf2611d4dccc87..8b9d38fe545c83edc7dbf4fd28f981525fddefab 100644 (file)
@@ -765,7 +765,7 @@ extern LZMA_API(lzma_ret) lzma_stream_decoder_mt(
  * as it doesn't support any decoder flags. It will return LZMA_STREAM_END
  * after one .lzma stream.)
  *
 * \param       strm       Pointer to lzma_stream that is at least initialized
* \param       strm        Pointer to lzma_stream that is at least initialized
  *                          with LZMA_STREAM_INIT.
  * \param       memlimit    Memory usage limit as bytes. Use UINT64_MAX
  *                          to effectively disable the limiter. liblzma
index 6eee4d68137dfca23f088b65ea824591ca39598d..d5688376cb1d374c477f9b2b07bdcfe4a46450a9 100644 (file)
@@ -234,7 +234,7 @@ typedef struct {
        } block;
 
        /**
-        * \private     Internal struct.
+        * \private     Internal data
         *
         * Internal data which is used to store the state of the iterator.
         * The exact format may vary between liblzma versions, so don't
@@ -651,7 +651,7 @@ extern LZMA_API(lzma_bool) lzma_index_iter_locate(
  *                        function succeeds, the memory allocated for src
  *                        is freed or moved to be part of dest, and all
  *                        iterators pointing to src will become invalid.
-* \param       allocator  lzma_allocator for custom allocator functions.
+ * \param       allocator lzma_allocator for custom allocator functions.
  *                        Set to NULL to use malloc() and free().
  *
  * \return      Possible lzma_ret values:
@@ -771,7 +771,7 @@ extern LZMA_API(lzma_ret) lzma_index_buffer_encode(const lzma_index *i,
  *                          lzma_index is allowed to require. The value
  *                          pointed by this pointer is modified if and only
  *                          if LZMA_MEMLIMIT_ERROR is returned.
 * \param      allocator   lzma_allocator for custom allocator functions.
* \param       allocator   lzma_allocator for custom allocator functions.
  *                          Set to NULL to use malloc() and free().
  * \param       in          Beginning of the input buffer
  * \param       in_pos      The next byte will be read from in[*in_pos].
index f9ad15500dfe2eb36ebe64e6aba3e4234c078d0b..7915fa6dad77cf47e7836d9e90b43a54b1af2a94 100644 (file)
@@ -68,9 +68,8 @@ typedef uint64_t lzma_vli;
  * This is useful to test that application has given acceptable values
  * for example in the uncompressed_size and compressed_size variables.
  *
- * \return      True if the integer is representable as VLI or if it
- *              indicates unknown value. False if the integer cannot be
- *              represented as VLI.
+ * \return      True if the integer is representable as a VLI or if it
+ *              indicates an unknown value. False otherwise.
  */
 #define lzma_vli_is_valid(vli) \
        ((vli) <= LZMA_VLI_MAX || (vli) == LZMA_VLI_UNKNOWN)