aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/index.h
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2022-08-17 17:59:51 +0800
committerJia Tan <jiat0218@gmail.com>2023-01-02 22:20:04 +0800
commit203b008eb220208981902e0db541c02d1c1c9f5e (patch)
treed64b2557c269175d43a031932ccb2ed068abe25f /src/liblzma/common/index.h
parentTests: test_check: Test corner cases of CLMUL CRC64. (diff)
downloadxz-203b008eb220208981902e0db541c02d1c1c9f5e.tar.xz
liblzma: Replaced hardcoded 0x0 index indicator byte with macro
Diffstat (limited to 'src/liblzma/common/index.h')
-rw-r--r--src/liblzma/common/index.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/liblzma/common/index.h b/src/liblzma/common/index.h
index 64e97247..ea396714 100644
--- a/src/liblzma/common/index.h
+++ b/src/liblzma/common/index.h
@@ -22,6 +22,9 @@
/// Maximum Unpadded Size
#define UNPADDED_SIZE_MAX (LZMA_VLI_MAX & ~LZMA_VLI_C(3))
+/// Index Indicator based on xz specification
+#define INDEX_INDICATOR 0
+
/// Get the size of the Index Padding field. This is needed by Index encoder
/// and decoder, but applications should have no use for this.