deps: update brotli to 1.1.0 by nodejs-github-bot · Pull Request #50804 · nodejs/node · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deps/brotli/brotli.gyp
2 changes: 1 addition & 1 deletion deps/brotli/c/common/constants.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/

#include "./constants.h"
#include "constants.h"

const BrotliPrefixCodeRange
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
Expand Down
3 changes: 2 additions & 1 deletion deps/brotli/c/common/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
#ifndef BROTLI_COMMON_CONSTANTS_H_
#define BROTLI_COMMON_CONSTANTS_H_

#include "./platform.h"
#include <brotli/port.h>
#include <brotli/types.h>

#include "platform.h"

/* Specification: 7.3. Encoding of the context map */
#define BROTLI_CONTEXT_MAP_MAX_RLE 16

Expand Down
2 changes: 1 addition & 1 deletion deps/brotli/c/common/context.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "./context.h"
#include "context.h"

#include <brotli/types.h>

Expand Down
432 changes: 0 additions & 432 deletions deps/brotli/c/common/dictionary.bin

This file was deleted.

Binary file removed deps/brotli/c/common/dictionary.bin.br
Binary file not shown.
8 changes: 5 additions & 3 deletions deps/brotli/c/common/dictionary.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/

#include "./dictionary.h"
#include "./platform.h"
#include "dictionary.h"
#include "platform.h"

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

#if !defined(BROTLI_EXTERNAL_DICTIONARY_DATA)
static const uint8_t kBrotliDictionaryData[] =
/* GENERATED CODE START */
{
116,105,109,101,100,111,119,110,108,105,102,101,108,101,102,116,98,97,99,107,99,
111,100,101,100,97,116,97,115,104,111,119,111,110,108,121,115,105,116,101,99,105
Expand Down Expand Up @@ -5860,6 +5861,7 @@ static const uint8_t kBrotliDictionaryData[] =
,164,181,224,164,190,224,164,136,224,164,184,224,164,149,224,165,141,224,164,176
,224,164,191,224,164,175,224,164,164,224,164,190
}
/* GENERATED CODE END */
;
#endif /* !BROTLI_EXTERNAL_DICTIONARY_DATA */

Expand Down Expand Up @@ -5895,7 +5897,7 @@ static BrotliDictionary kBrotliDictionary = {
#endif
};

const BrotliDictionary* BrotliGetDictionary() {
const BrotliDictionary* BrotliGetDictionary(void) {
return &kBrotliDictionary;
}

Expand Down
3 changes: 2 additions & 1 deletion deps/brotli/c/common/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

#include <stdlib.h>

#include "./platform.h"
#include <brotli/types.h>

#include "platform.h"

/* Default brotli_alloc_func */
void* BrotliDefaultAllocFunc(void* opaque, size_t size) {
BROTLI_UNUSED(opaque);
Expand Down
173 changes: 60 additions & 113 deletions deps/brotli/c/common/platform.h
Loading