]> 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, 23 Apr 2024 22:20:58 +0000 (01:20 +0300)
src/liblzma/api/lzma/container.h
src/liblzma/api/lzma/index.h
src/liblzma/api/lzma/vli.h

index ad3f99057a32ee8a09aaca9da0ee0a9da353fe78..8e4af420389bb175bfed0b66409cd1730f9a8a2f 100644 (file)
@@ -792,7 +792,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 7d8a9950ceafbd6908498c923179482eb2ff81e5..b17025e3d901663b7a44bdf988e93c2f83db6c45 100644 (file)
@@ -233,7 +233,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
@@ -673,7 +673,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:
@@ -793,7 +793,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 7f3e398aae5b0b7d1cb3dd9c132aed5765154e29..6b049021b9090a913db9996f24ad90cb62e760af 100644 (file)
@@ -67,9 +67,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)