Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_THIRD_PARTY_BLINK_SRC_TOKENIZER_ADAPTER_H_ | 5 #ifndef IOS_THIRD_PARTY_BLINK_SRC_TOKENIZER_ADAPTER_H_ |
| 6 #define IOS_THIRD_PARTY_BLINK_SRC_TOKENIZER_ADAPTER_H_ | 6 #define IOS_THIRD_PARTY_BLINK_SRC_TOKENIZER_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 | 14 |
| 14 #define ALWAYS_INLINE inline __attribute__((always_inline)) | |
|
rohitrao (ping after 24h)
2016/11/07 23:16:13
Is this being changed from "inline __attribute__((
palmer
2016/11/07 23:29:51
No, no change. compiler_specific.h says:
#if COMP
sdefresne
2016/11/08 08:40:20
Yeah, clang defines __GNUC__:
$ clang -dM -E - <
| |
| 15 | |
| 16 #define DEFINE_STATIC_LOCAL_STRING(name, arguments) \ | 15 #define DEFINE_STATIC_LOCAL_STRING(name, arguments) \ |
| 17 static const WebCore::LChar* name = (const WebCore::LChar*)arguments; \ | 16 static const WebCore::LChar* name = (const WebCore::LChar*)arguments; \ |
| 18 static const size_t name##Length = (arraysize(arguments) - 1); \ | 17 static const size_t name##Length = (arraysize(arguments) - 1); \ |
| 19 DCHECK(name##Length == strlen((const char*)name)) | 18 DCHECK(name##Length == strlen((const char*)name)) |
| 20 | 19 |
| 21 #define WTF_MAKE_NONCOPYABLE(x) DISALLOW_COPY_AND_ASSIGN(x) | 20 #define WTF_MAKE_NONCOPYABLE(x) DISALLOW_COPY_AND_ASSIGN(x) |
| 22 | 21 |
| 23 #define ASSERT(x) DCHECK(x) | 22 #define ASSERT(x) DCHECK(x) |
| 24 #define ASSERT_NOT_REACHED NOTREACHED | 23 #define ASSERT_NOT_REACHED NOTREACHED |
| 25 | 24 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 45 const int lowerCaseOffset = 0x20; | 44 const int lowerCaseOffset = 0x20; |
| 46 return c + lowerCaseOffset; | 45 return c + lowerCaseOffset; |
| 47 } | 46 } |
| 48 | 47 |
| 49 inline UChar ByteSwap(UChar c) { | 48 inline UChar ByteSwap(UChar c) { |
| 50 return ((c & 0x00ff) << 8) | ((c & 0xff00) >> 8); | 49 return ((c & 0x00ff) << 8) | ((c & 0xff00) >> 8); |
| 51 } | 50 } |
| 52 } | 51 } |
| 53 | 52 |
| 54 #endif // IOS_THIRD_PARTY_BLINK_SRC_TOKENIZER_ADAPTER_H_ | 53 #endif // IOS_THIRD_PARTY_BLINK_SRC_TOKENIZER_ADAPTER_H_ |
| OLD | NEW |