]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Use lzma_attr_visibility_hidden on private extern declarations.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 22 Oct 2023 14:15:32 +0000 (17:15 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 30 Oct 2023 16:06:25 +0000 (18:06 +0200)
These variables are internal to liblzma and not exposed in the API.

src/liblzma/check/check.h
src/liblzma/common/stream_flags_common.h
src/liblzma/lz/lz_encoder_hash.h
src/liblzma/lzma/fastpos.h
src/liblzma/rangecoder/price.h

index 783627bd21b96db1d451a868a74ad891abc8babe..8ae95d59019f7b3a59d6a71be188180fc9de79a0 100644 (file)
@@ -99,10 +99,17 @@ typedef struct {
 /// lzma_crc32_table[0] is needed by LZ encoder so we need to keep
 /// the array two-dimensional.
 #ifdef HAVE_SMALL
+lzma_attr_visibility_hidden
 extern uint32_t lzma_crc32_table[1][256];
+
 extern void lzma_crc32_init(void);
+
 #else
+
+lzma_attr_visibility_hidden
 extern const uint32_t lzma_crc32_table[8][256];
+
+lzma_attr_visibility_hidden
 extern const uint64_t lzma_crc64_table[4][256];
 #endif
 
index 9f3122a3b1e57424432c891d433ca8588800b51f..84e96ba1ff6627506bc2502d9a991789bc62442a 100644 (file)
 /// Size of the Stream Flags field
 #define LZMA_STREAM_FLAGS_SIZE 2
 
+lzma_attr_visibility_hidden
 extern const uint8_t lzma_header_magic[6];
+
+lzma_attr_visibility_hidden
 extern const uint8_t lzma_footer_magic[2];
 
 
index fb15c58146db4f5e3be3a0a17cd929d7ca8a6fbc..4d9971ae6a5df3f08f091e17ac68e465056a409d 100644 (file)
@@ -17,6 +17,7 @@
        // This is to make liblzma produce the same output on big endian
        // systems that it does on little endian systems. lz_encoder.c
        // takes care of including the actual table.
+       lzma_attr_visibility_hidden
        extern const uint32_t lzma_lz_hash_table[256];
 #      define hash_table lzma_lz_hash_table
 #else
index cba442c27e5cbf1d8f9e7ba741d933d920bdbc2a..dbeb16f7e31a2986b8b94b3cb3ee7557b7a8e6a5 100644 (file)
@@ -91,6 +91,7 @@ get_dist_slot_2(uint32_t dist)
 
 #define FASTPOS_BITS 13
 
+lzma_attr_visibility_hidden
 extern const uint8_t lzma_fastpos[1 << FASTPOS_BITS];
 
 
index 8ae02ca7474e0e7245ed4c403f6461bc82a7fd03..45dbbbb20cef2f6a0733d01532abbb481422e8e4 100644 (file)
@@ -22,6 +22,7 @@
 
 
 /// Lookup table for the inline functions defined in this file.
+lzma_attr_visibility_hidden
 extern const uint8_t lzma_rc_prices[RC_PRICE_TABLE_SIZE];