| Index: third_party/brotli/dec/huffman.h
|
| diff --git a/third_party/brotli/dec/huffman.h b/third_party/brotli/dec/huffman.h
|
| index 7cbec80d429b7e82d7f91b06c3167e9b6e1ea99f..fc880810c66658d7bbe735208dd045c611709915 100644
|
| --- a/third_party/brotli/dec/huffman.h
|
| +++ b/third_party/brotli/dec/huffman.h
|
| @@ -10,6 +10,7 @@
|
| #define BROTLI_DEC_HUFFMAN_H_
|
|
|
| #include "./types.h"
|
| +#include "./port.h"
|
|
|
| #if defined(__cplusplus) || defined(c_plusplus)
|
| extern "C" {
|
| @@ -36,27 +37,21 @@ typedef struct {
|
| uint16_t value; /* symbol value or table offset */
|
| } HuffmanCode;
|
|
|
| -
|
| /* Builds Huffman lookup table assuming code lengths are in symbol order. */
|
| -void BrotliBuildCodeLengthsHuffmanTable(HuffmanCode* root_table,
|
| - const uint8_t* const code_lengths,
|
| - uint16_t* count);
|
| +BROTLI_INTERNAL void BrotliBuildCodeLengthsHuffmanTable(HuffmanCode* root_table,
|
| + const uint8_t* const code_lengths, uint16_t* count);
|
|
|
| /* Builds Huffman lookup table assuming code lengths are in symbol order. */
|
| /* Returns size of resulting table. */
|
| -uint32_t BrotliBuildHuffmanTable(HuffmanCode* root_table,
|
| - int root_bits,
|
| - const uint16_t* const symbol_lists,
|
| - uint16_t* count_arg);
|
| +BROTLI_INTERNAL uint32_t BrotliBuildHuffmanTable(HuffmanCode* root_table,
|
| + int root_bits, const uint16_t* const symbol_lists, uint16_t* count_arg);
|
|
|
| /* Builds a simple Huffman table. The num_symbols parameter is to be */
|
| /* interpreted as follows: 0 means 1 symbol, 1 means 2 symbols, 2 means 3 */
|
| /* symbols, 3 means 4 symbols with lengths 2,2,2,2, 4 means 4 symbols with */
|
| /* lengths 1,2,3,3. */
|
| -uint32_t BrotliBuildSimpleHuffmanTable(HuffmanCode* table,
|
| - int root_bits,
|
| - uint16_t* symbols,
|
| - uint32_t num_symbols);
|
| +BROTLI_INTERNAL uint32_t BrotliBuildSimpleHuffmanTable(HuffmanCode* table,
|
| + int root_bits, uint16_t* symbols, uint32_t num_symbols);
|
|
|
| /* Contains a collection of Huffman trees with the same alphabet size. */
|
| typedef struct {
|
|
|