aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/check.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-08 18:24:50 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-08 18:24:50 +0200
commit0e27028d74c5c7a8e036ae2a9b8cecb0ac79d3a6 (patch)
treeda1e0548876b37f0100390e36593097b6fc99c20 /src/liblzma/check/check.h
parentMake "xz --force" to write to terminal as the error (diff)
downloadxz-0e27028d74c5c7a8e036ae2a9b8cecb0ac79d3a6.tar.xz
Add a separate internal function to initialize the CRC32
table, which is used also by LZ encoder. This was needed because calling lzma_crc32() and ignoring the result is a no-op due to lzma_attr_pure.
Diffstat (limited to 'src/liblzma/check/check.h')
-rw-r--r--src/liblzma/check/check.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/check/check.h b/src/liblzma/check/check.h
index 73c6391d..1dfc4d73 100644
--- a/src/liblzma/check/check.h
+++ b/src/liblzma/check/check.h
@@ -61,6 +61,7 @@ typedef struct {
/// the array two-dimensional.
#ifdef HAVE_SMALL
extern uint32_t lzma_crc32_table[1][256];
+extern void lzma_crc32_init(void);
#else
extern const uint32_t lzma_crc32_table[8][256];
extern const uint64_t lzma_crc64_table[4][256];