diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-13 12:10:43 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-13 12:10:43 +0300 |
commit | 13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 (patch) | |
tree | aa9c137d41bd5d39fa8835cc77cf325ff13a7e7c /src/liblzma/api/lzma/vli.h | |
parent | Improved the Stream Flags handling API. (diff) | |
download | xz-13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7.tar.xz |
Renamed constants:
- LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX
- LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN
- LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR
Diffstat (limited to 'src/liblzma/api/lzma/vli.h')
-rw-r--r-- | src/liblzma/api/lzma/vli.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/liblzma/api/lzma/vli.h b/src/liblzma/api/lzma/vli.h index 294e5cdd..1b13f865 100644 --- a/src/liblzma/api/lzma/vli.h +++ b/src/liblzma/api/lzma/vli.h @@ -24,12 +24,12 @@ /** * \brief Maximum supported value of variable-length integer */ -#define LZMA_VLI_VALUE_MAX (UINT64_MAX / 2) +#define LZMA_VLI_MAX (UINT64_MAX / 2) /** * \brief VLI value to denote that the value is unknown */ -#define LZMA_VLI_VALUE_UNKNOWN UINT64_MAX +#define LZMA_VLI_UNKNOWN UINT64_MAX /** * \brief Maximum supported length of variable length integers @@ -47,12 +47,12 @@ * \brief Variable-length integer type * * This will always be unsigned integer. Valid VLI values are in the range - * [0, LZMA_VLI_VALUE_MAX]. Unknown value is indicated with - * LZMA_VLI_VALUE_UNKNOWN, which is the maximum value of the underlaying - * integer type (this feature is useful in several situations). + * [0, LZMA_VLI_MAX]. Unknown value is indicated with LZMA_VLI_UNKNOWN, + * which is the maximum value of the underlaying integer type (this feature + * is useful in several situations). * * In future, even if lzma_vli is typdefined to something else than uint64_t, - * it is guaranteed that 2 * LZMA_VLI_VALUE_MAX will not overflow lzma_vli. + * it is guaranteed that 2 * LZMA_VLI_MAX will not overflow lzma_vli. * This simplifies integer overflow detection. */ typedef uint64_t lzma_vli; @@ -68,7 +68,7 @@ typedef uint64_t lzma_vli; * indicates unknown value. */ #define lzma_vli_is_valid(vli) \ - ((vli) <= LZMA_VLI_VALUE_MAX || (vli) == LZMA_VLI_VALUE_UNKNOWN) + ((vli) <= LZMA_VLI_MAX || (vli) == LZMA_VLI_UNKNOWN) /** @@ -83,7 +83,7 @@ typedef uint64_t lzma_vli; * non-minimum number of bytes are invalid, thus every integer has exactly * one encoded representation. The maximum number of bits in a VLI is 63, * thus the vli argument must be at maximum of UINT64_MAX / 2. You should - * use LZMA_VLI_VALUE_MAX for clarity. + * use LZMA_VLI_MAX for clarity. * * This function has two modes: single-call and multi-call. Single-call mode * encodes the whole integer at once; it is an error if the output buffer is |