| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PLATFORM_GLOBALS_H_ | 5 #ifndef PLATFORM_GLOBALS_H_ |
| 6 #define PLATFORM_GLOBALS_H_ | 6 #define PLATFORM_GLOBALS_H_ |
| 7 | 7 |
| 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to | 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to |
| 9 // enable platform independent printf format specifiers. | 9 // enable platform independent printf format specifiers. |
| 10 #ifndef __STDC_FORMAT_MACROS | 10 #ifndef __STDC_FORMAT_MACROS |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 | 300 |
| 301 // Short form printf format specifiers | 301 // Short form printf format specifiers |
| 302 #define Pd PRIdPTR | 302 #define Pd PRIdPTR |
| 303 #define Pu PRIuPTR | 303 #define Pu PRIuPTR |
| 304 #define Px PRIxPTR | 304 #define Px PRIxPTR |
| 305 #define Pd64 PRId64 | 305 #define Pd64 PRId64 |
| 306 #define Pu64 PRIu64 | 306 #define Pu64 PRIu64 |
| 307 #define Px64 PRIx64 | 307 #define Px64 PRIx64 |
| 308 | 308 |
| 309 // Zero-padded pointer |
| 310 #if defined(ARCH_IS_32_BIT) |
| 311 #define Pp "08" PRIxPTR |
| 312 #else |
| 313 #define Pp "016" PRIxPTR |
| 314 #endif |
| 315 |
| 309 | 316 |
| 310 // Suffixes for 64-bit integer literals. | 317 // Suffixes for 64-bit integer literals. |
| 311 #ifdef _MSC_VER | 318 #ifdef _MSC_VER |
| 312 #define DART_INT64_C(x) x##I64 | 319 #define DART_INT64_C(x) x##I64 |
| 313 #define DART_UINT64_C(x) x##UI64 | 320 #define DART_UINT64_C(x) x##UI64 |
| 314 #else | 321 #else |
| 315 #define DART_INT64_C(x) x##LL | 322 #define DART_INT64_C(x) x##LL |
| 316 #define DART_UINT64_C(x) x##ULL | 323 #define DART_UINT64_C(x) x##ULL |
| 317 #endif | 324 #endif |
| 318 | 325 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 | 602 |
| 596 #if defined(_WIN32) | 603 #if defined(_WIN32) |
| 597 #define STDIN_FILENO 0 | 604 #define STDIN_FILENO 0 |
| 598 #define STDOUT_FILENO 1 | 605 #define STDOUT_FILENO 1 |
| 599 #define STDERR_FILENO 2 | 606 #define STDERR_FILENO 2 |
| 600 #endif | 607 #endif |
| 601 | 608 |
| 602 } // namespace dart | 609 } // namespace dart |
| 603 | 610 |
| 604 #endif // PLATFORM_GLOBALS_H_ | 611 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |