Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: third_party/brotli/enc/dictionary.h

Issue 1956893002: Added brotli enc/ and tools/ directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated to most recent build tools Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/brotli/enc/context.h ('k') | third_party/brotli/enc/dictionary.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/enc/dictionary.h
diff --git a/third_party/brotli/dec/dictionary.h b/third_party/brotli/enc/dictionary.h
similarity index 53%
copy from third_party/brotli/dec/dictionary.h
copy to third_party/brotli/enc/dictionary.h
index ae250c2d7f2ed6b04edd8c8bb3faa8b857ce82f0..c9c6362da8dc4c83706e16d8c0da4df9532300d8 100644
--- a/third_party/brotli/dec/dictionary.h
+++ b/third_party/brotli/enc/dictionary.h
@@ -4,13 +4,15 @@
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
-/* Collection of static dictionary words. */
+// Collection of static dictionary words.
-#ifndef BROTLI_DEC_DICTIONARY_H_
-#define BROTLI_DEC_DICTIONARY_H_
+#ifndef BROTLI_ENC_DICTIONARY_H_
+#define BROTLI_ENC_DICTIONARY_H_
#include "./types.h"
+// No namespace, use same identifier as for the C decoder.
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
@@ -18,21 +20,22 @@ extern "C" {
extern const uint8_t kBrotliDictionary[122784];
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
+ 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,
+ 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;
#if defined(__cplusplus) || defined(c_plusplus)
-} /* extern "C" */
+} /* extern "C" */
#endif
-#endif /* BROTLI_DEC_DICTIONARY_H_ */
+#endif // BROTLI_ENC_DICTIONARY_H_
« no previous file with comments | « third_party/brotli/enc/context.h ('k') | third_party/brotli/enc/dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698