Index: third_party/brotli/common/dictionary.h |
diff --git a/third_party/brotli/dec/dictionary.h b/third_party/brotli/common/dictionary.h |
similarity index 35% |
rename from third_party/brotli/dec/dictionary.h |
rename to third_party/brotli/common/dictionary.h |
index ae250c2d7f2ed6b04edd8c8bb3faa8b857ce82f0..4a707077cff7d9278ad32939911c6fdad3edccaa 100644 |
--- a/third_party/brotli/dec/dictionary.h |
+++ b/third_party/brotli/common/dictionary.h |
@@ -6,33 +6,25 @@ |
/* Collection of static dictionary words. */ |
-#ifndef BROTLI_DEC_DICTIONARY_H_ |
-#define BROTLI_DEC_DICTIONARY_H_ |
+#ifndef BROTLI_COMMON_DICTIONARY_H_ |
+#define BROTLI_COMMON_DICTIONARY_H_ |
-#include "./types.h" |
+#include <brotli/port.h> |
+#include <brotli/types.h> |
#if defined(__cplusplus) || defined(c_plusplus) |
extern "C" { |
#endif |
-extern const uint8_t kBrotliDictionary[122784]; |
+BROTLI_COMMON_API extern const uint8_t kBrotliDictionary[122784]; |
+BROTLI_COMMON_API extern const uint32_t kBrotliDictionaryOffsetsByLength[25]; |
+BROTLI_COMMON_API extern const uint8_t kBrotliDictionarySizeBitsByLength[25]; |
-static const uint32_t kBrotliDictionaryOffsetsByLength[] = { |
- 0, 0, 0, 0, 0, 4096, 9216, 21504, 35840, 44032, 53248, 63488, 74752, 87040, |
- 93696, 100864, 104704, 106752, 108928, 113536, 115968, 118528, 119872, 121280, |
- 122016 |
-}; |
- |
-static const uint8_t kBrotliDictionarySizeBitsByLength[] = { |
- 0, 0, 0, 0, 10, 10, 11, 11, 10, 10, 10, 10, 10, |
- 9, 9, 8, 7, 7, 8, 7, 7, 6, 6, 5, 5, |
-}; |
- |
-static const int kBrotliMinDictionaryWordLength = 4; |
-static const int kBrotliMaxDictionaryWordLength = 24; |
+#define BROTLI_MIN_DICTIONARY_WORD_LENGTH 4 |
+#define BROTLI_MAX_DICTIONARY_WORD_LENGTH 24 |
#if defined(__cplusplus) || defined(c_plusplus) |
} /* extern "C" */ |
#endif |
-#endif /* BROTLI_DEC_DICTIONARY_H_ */ |
+#endif /* BROTLI_COMMON_DICTIONARY_H_ */ |