Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 661880 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +12 lines)
Line  Link Here
 return N;
 return N;
1
 return N;
1
 return N;
2
 size_t x = base::size(non_empty_array);
2
 size_t x = base::size(non_empty_array);
3
 size_t x = base::size(empty_array);
3
 size_t x = base::size(empty_array);
4
 size_t x = ARRAY_LENGTH(non_empty_array);
4
 size_t x = ARRAY_LENGTH(non_empty_array);
5
 size_t x = ARRAY_LENGTH(empty_array);
5
 size_t x = ARRAY_LENGTH(empty_array);
6
  size_t x = base::size(empty_array);
6
  size_t x = base::size(empty_array);
7
                                   ^
7
                                   ^
8
constexpr size_t size(const T (&array)[N]) noexcept {
8
constexpr size_t size(const T (&array)[N]) noexcept {
9
                 ^~~~
9
                 ^~~~
10
 size_t x = base::size(empty_array);
10
 size_t x = base::size(empty_array);
11
            ^~~~~~~~~~
11
            ^~~~~~~~~~
12
                ^                     ~
12
                ^                     ~
13
-- /third_party/blink/renderer/platform/text/character.cc
13
++ /third_party/blink/renderer/platform/text/character.cc
Lines 63-71 Link Here
63
  return unicodeSet;
63
  return unicodeSet;
64
}
64
}
65
65
66
#define CREATE_UNICODE_SET(name)                                       \
66
// base::size (from base/stl_util.h) causes compilation errors
67
  createUnicodeSet(name##Array, base::size(name##Array), name##Ranges, \
67
// with zero-length arrays.
68
                   base::size(name##Ranges))
68
#define ARRAY_LENGTH(a) (sizeof(a) / sizeof((a)[0]))
69
70
#define CREATE_UNICODE_SET(name)                             \
71
  createUnicodeSet(name##Array, ARRAY_LENGTH(name##Array),   \
72
                   name##Ranges, ARRAY_LENGTH(name##Ranges))
69
73
70
#define RETURN_HAS_PROPERTY(c, name)            \
74
#define RETURN_HAS_PROPERTY(c, name)            \
71
  static icu::UnicodeSet* unicodeSet = nullptr; \
75
  static icu::UnicodeSet* unicodeSet = nullptr; \
72
-- /third_party/blink/renderer/platform/text/character_property_data_generator.cc
76
++ /third_party/blink/renderer/platform/text/character_property_data_generator.cc
Lines 22-27 Link Here
22
#else
22
#else
23
23
24
const UChar32 kMaxCodepoint = 0x10FFFF;
24
const UChar32 kMaxCodepoint = 0x10FFFF;
25
26
// base::size (from base/stl_util.h) causes compilation errors
27
// with zero-length arrays.
25
#define ARRAY_LENGTH(a) (sizeof(a) / sizeof((a)[0]))
28
#define ARRAY_LENGTH(a) (sizeof(a) / sizeof((a)[0]))
26
29
27
static void SetRanges(CharacterProperty* values,
30
static void SetRanges(CharacterProperty* values,

Return to bug 661880