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

Unified Diff: vm/os_win.cc

Issue 10446116: Add flow graph printing into a .cfg file with flag --print-flow-graph-file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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
« vm/intermediate_language.cc ('K') | « vm/os_macos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/os_win.cc
===================================================================
--- vm/os_win.cc (revision 8145)
+++ vm/os_win.cc (working copy)
@@ -177,6 +177,14 @@
}
+void OS::FPrint(FILE* stream, const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ VFPrint(stream, format, args);
+ va_end(args);
+}
+
+
void OS::VFPrint(FILE* stream, const char* format, va_list args) {
vfprintf(stream, format, args);
fflush(stream);
@@ -218,6 +226,13 @@
}
+FILE* OS::FOpen(const char* path, const char* mode) {
+ FILE* result;
+ if (fopen_s(&result, path, mode) == 0) return result;
+ return NULL;
+}
+
+
void OS::PrintErr(const char* format, ...) {
va_list args;
va_start(args, format);
« vm/intermediate_language.cc ('K') | « vm/os_macos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698