Skip to content

Commit cc1a67a

Browse files
deps: update brotli to 1.2.0
1 parent 478a5e6 commit cc1a67a

File tree

101 files changed

+16723
-14845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+16723
-14845
lines changed

β€Ždeps/brotli/c/common/constants.cβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
#include "constants.h"
88

9-
const BrotliPrefixCodeRange
10-
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
11-
{1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3},
12-
{33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4},
13-
{113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6},
14-
{369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12},
15-
{8433, 13}, {16625, 24}};
9+
const BROTLI_MODEL("small")
10+
BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
11+
{1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3},
12+
{33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4},
13+
{113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6},
14+
{369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12},
15+
{8433, 13}, {16625, 24}};

β€Ždeps/brotli/c/common/constants.hβ€Ž

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#ifndef BROTLI_COMMON_CONSTANTS_H_
1313
#define BROTLI_COMMON_CONSTANTS_H_
1414

15-
#include <brotli/port.h>
16-
#include <brotli/types.h>
17-
1815
#include "platform.h"
1916

2017
/* Specification: 7.3. Encoding of the context map */
@@ -195,7 +192,7 @@ typedef struct {
195192
} BrotliPrefixCodeRange;
196193

197194
/* "Soft-private", it is exported, but not "advertised" as API. */
198-
BROTLI_COMMON_API extern const BrotliPrefixCodeRange
199-
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS];
195+
BROTLI_COMMON_API extern const BROTLI_MODEL("small")
196+
BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS];
200197

201198
#endif /* BROTLI_COMMON_CONSTANTS_H_ */

β€Ždeps/brotli/c/common/context.cβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "context.h"
22

3-
#include <brotli/types.h>
3+
#include "platform.h"
44

55
/* Common context lookup table for all context modes. */
6-
const uint8_t _kBrotliContextLookupTable[2048] = {
6+
const BROTLI_MODEL("small") uint8_t _kBrotliContextLookupTable[2048] = {
77
/* CONTEXT_LSB6, last byte. */
88
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
99
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,

β€Ždeps/brotli/c/common/context.hβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888
#ifndef BROTLI_COMMON_CONTEXT_H_
8989
#define BROTLI_COMMON_CONTEXT_H_
9090

91-
#include <brotli/port.h>
92-
#include <brotli/types.h>
91+
#include "platform.h"
9392

9493
typedef enum ContextType {
9594
CONTEXT_LSB6 = 0,

β€Ždeps/brotli/c/common/dictionary.cβ€Ž

Lines changed: 4 additions & 5856 deletions
Large diffs are not rendered by default.

β€Ždeps/brotli/c/common/dictionary.hβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
#ifndef BROTLI_COMMON_DICTIONARY_H_
1010
#define BROTLI_COMMON_DICTIONARY_H_
1111

12-
#include <brotli/port.h>
13-
#include <brotli/types.h>
12+
#include "platform.h"
1413

1514
#if defined(__cplusplus) || defined(c_plusplus)
1615
extern "C" {

β€Ždeps/brotli/c/common/dictionary_inc.hβ€Ž

Lines changed: 5847 additions & 0 deletions
Large diffs are not rendered by default.

β€Ždeps/brotli/c/common/platform.cβ€Ž

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
55
*/
66

7-
#include <stdlib.h>
8-
9-
#include <brotli/types.h>
10-
117
#include "platform.h"
128

139
/* Default brotli_alloc_func */

0 commit comments

Comments
Β (0)