Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: runtime/platform/globals.h

Issue 10826116: Revert "Use platform-independent format specifiers when disassembling code objects." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/globals.h
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h
index 4988ab8c9548ac4ae9310d7ae9dff56b951a099c..415e6c35a3cef82c5d92a3458bbecc64ee11b6dd 100644
--- a/runtime/platform/globals.h
+++ b/runtime/platform/globals.h
@@ -5,8 +5,7 @@
#ifndef PLATFORM_GLOBALS_H_
#define PLATFORM_GLOBALS_H_
-// __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to
-// enable platform independent printf format specifiers.
+// __STDC_FORMAT_MACROS has to be defined to enable platform independent printf.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
@@ -109,24 +108,14 @@
#endif
-// Printf format specifiers for intptr_t on Windows.
-#if defined(TARGET_OS_WINDOWS)
+// Printf format for intptr_t on Windows.
+#if !defined(PRIxPTR) && defined(TARGET_OS_WINDOWS)
#if defined(ARCH_IS_32_BIT)
-#define DART_PRINTF_PTR_PREFIX ""
+#define PRIxPTR "x"
#else
-#define DART_PRINTF_PTR_PREFIX "ll"
-#endif
-
-#if !defined(PRIdPTR)
-#define PRIdPTR DART_PRINTF_PTR_PREFIX "d"
-#endif
-
-#if !defined(PRIxPTR)
-#define PRIxPTR DART_PRINTF_PTR_PREFIX "x"
-#endif
-
-#undef DART_PRINTF_PTR_PREFIX
-#endif // defined(TARGET_OS_WINDOWS)
+#define PRIxPTR "llx"
+#endif // defined(ARCH_IS_32_BIT)
+#endif // !defined(PRIxPTR) && defined(TARGET_OS_WINDOWS)
// Suffixes for 64-bit integer literals.
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698