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
committerLasse Collin <lasse.collin@tukaani.org>2023-01-09 16:34:32 +0200
commitdb714d30e0c74d1dd4af1a23ed62b44e0e8e4efc (patch)
treeb6e4494df4142f88e4f4fd74a42d1fada429aa53 /src/liblzma/common/index.h
parentStyle: Change #if !defined() to #ifndef in mythread.h. (diff)
downloadxz-db714d30e0c74d1dd4af1a23ed62b44e0e8e4efc.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.