Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 BASE_BASICTYPES_H_ | 5 #ifndef BASE_BASICTYPES_H_ |
| 6 #define BASE_BASICTYPES_H_ | 6 #define BASE_BASICTYPES_H_ |
| 7 | 7 |
| 8 #include <limits.h> // So we can set the bounds of our types. | 8 #include <limits.h> // So we can set the bounds of our types. |
| 9 #include <stddef.h> // For size_t. | 9 #include <stddef.h> // For size_t. |
| 10 #include <stdint.h> // For intptr_t. | 10 #include <stdint.h> // For intptr_t. |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 | 14 |
| 15 // DEPRECATED: Use (u)int{8,16,32,64}_t instead (and include <stdint.h>). | 15 // DEPRECATED: Use (u)int{8,16,32,64}_t instead (and include <stdint.h>). |
| 16 // http://crbug.com/138542 | 16 // http://crbug.com/138542 |
| 17 typedef int8_t int8; | 17 typedef int8_t int8; |
| 18 typedef uint8_t uint8; | 18 typedef uint8_t uint8; |
| 19 typedef int16_t int16; | 19 typedef int16_t int16; |
| 20 typedef uint16_t uint16; | 20 typedef uint16_t uint16; |
| 21 typedef int32_t int32; | 21 typedef int32_t int32; |
| 22 typedef uint32_t uint32; | 22 typedef uint32_t uint32; |
| 23 typedef int64_t int64; | 23 typedef int64_t int64; |
| 24 typedef uint64_t uint64; | 24 typedef uint64_t uint64; |
| 25 | 25 |
| 26 // DEPRECATED: Use std::numeric_limits (from <limits>) or | |
|
Mark Mentovai
2015/12/07 15:06:48
:)
| |
| 27 // (U)INT{8,16,32,64}_{MIN,MAX} in case of globals (and include <stdint.h>). | |
| 28 // http://crbug.com/138542 | |
| 29 const int32 kint32max = 0x7FFFFFFF; | |
| 30 | |
| 31 #endif // BASE_BASICTYPES_H_ | 26 #endif // BASE_BASICTYPES_H_ |
| OLD | NEW |