Skip to content

Commit

Permalink
Restore squash commit d75c2e9 (woff2)
Browse files Browse the repository at this point in the history
It seems to have been rewritten incorrectly as commit ff25e5b
(even though the message of commit eb5a36d references d75c2e9).
  • Loading branch information
dahlstrom-g authored Sep 14, 2023
2 parents a8bd2c3 + e7749ff commit 0f2376d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 38 deletions.
1 change: 1 addition & 0 deletions third_party/woff2/METADATA
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ third_party {
value: "https://github.com/google/woff2.git"
}
version: "1bccf208bca986e53a647dfe4811322adb06ecf8"
# from https://chromium.googlesource.com/chromium/src/+/87.0.4280.142/third_party/woff2/README.chromium#3
last_upgrade_date {
year: 2017
month: 11
Expand Down
14 changes: 0 additions & 14 deletions third_party/woff2/README.cobalt

This file was deleted.

2 changes: 1 addition & 1 deletion third_party/woff2/src/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ typedef unsigned __int64 uint64_t;
#define woff2_htons(x) htons (x)
#endif

#include <cstring>
#define MEMCPY_BUFFER std::memcpy

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <limits>

namespace woff2 {
Expand Down
6 changes: 0 additions & 6 deletions third_party/woff2/src/font.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

#include <algorithm>

#if !defined(STARBOARD)
#include <string.h>
#else
#include "starboard/client_porting/poem/string_poem.h"
#endif

#include "./buffer.h"
#include "./port.h"
#include "./store_bytes.h"
Expand Down
3 changes: 1 addition & 2 deletions third_party/woff2/src/glyph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

#include "./glyph.h"

#include <limits>
#include <stdlib.h>

#include <limits>
#include "./buffer.h"
#include "./store_bytes.h"

Expand Down
6 changes: 0 additions & 6 deletions third_party/woff2/src/normalize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
#include <inttypes.h>
#include <stddef.h>

#if !defined(STARBOARD)
#include <cstring>
#else
#include "starboard/client_porting/poem/string_poem.h"
#endif

#include "./buffer.h"
#include "./port.h"
#include "./font.h"
Expand Down
3 changes: 1 addition & 2 deletions third_party/woff2/src/store_bytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

#include <inttypes.h>
#include <stddef.h>

#include <cstring>
#include <string.h>
#define MEMCPY_STORE_BYTES memcpy

#include "./port.h"
Expand Down
6 changes: 0 additions & 6 deletions third_party/woff2/src/transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

#include <complex> // for std::abs

#if !defined(STARBOARD)
#include <cstring>
#else
#include "starboard/client_porting/poem/string_poem.h"
#endif

#include "./buffer.h"
#include "./font.h"
#include "./glyph.h"
Expand Down
2 changes: 1 addition & 1 deletion third_party/woff2/src/woff2_dec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <woff2/decode.h>

#include <stdlib.h>
#include <algorithm>
#include <complex>
#include <cstring>
Expand All @@ -16,7 +17,6 @@
#include <vector>
#include <map>
#include <memory>
#include <stdlib.h>
#include <utility>

#include <brotli/decode.h>
Expand Down

0 comments on commit 0f2376d

Please sign in to comment.