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

Unified Diff: src/simulator-arm.cc

Issue 2988: Made the ARM port with simulator build and run on Windows.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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 | « src/disasm-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/simulator-arm.cc
===================================================================
--- src/simulator-arm.cc (revision 347)
+++ src/simulator-arm.cc (working copy)
@@ -43,8 +43,12 @@
using ::v8::internal::OS;
using ::v8::internal::ReadLine;
using ::v8::internal::DeleteArray;
+#ifdef WIN32
+#define SScanF sscanf_s
+#else
+#define SScanF sscanf
+#endif
-
// The Debugger class is used by the simulator while debugging simulated ARM
// code.
class Debugger {
@@ -130,7 +134,7 @@
}
return true;
} else {
- return sscanf(desc, "%i", value) == 1; // NOLINT
+ return SScanF(desc, "%i", value) == 1; // NOLINT
}
return false;
}
@@ -215,7 +219,7 @@
} else {
// Use sscanf to parse the individual parts of the command line. At the
// moment no command expects more than two parameters.
- int args = sscanf(line, // NOLINT
+ int args = SScanF(line, // NOLINT
"%" XSTR(COMMAND_SIZE) "s "
"%" XSTR(ARG_SIZE) "s "
"%" XSTR(ARG_SIZE) "s",
« no previous file with comments | « src/disasm-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698