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

Unified Diff: runtime/bin/builtin.cc

Issue 8345009: Flush stdout on calls to PrintString (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.cc
diff --git a/runtime/bin/builtin.cc b/runtime/bin/builtin.cc
index 5f8abcf33522625f0d8604fc08e2891978e11ca9..9f7e0a404a8e3f909dfb3feb8b3870b53a72e7e2 100644
--- a/runtime/bin/builtin.cc
+++ b/runtime/bin/builtin.cc
@@ -4,9 +4,10 @@
#include <assert.h>
#include <stdlib.h>
-#include <string.h>
#include <stdio.h>
+#include <string>
Ivan Posva 2011/10/18 20:52:43 I do not see a reason for changing which headers a
rchandia 2011/10/18 21:05:28 Neither do I, but the presubmit script complained
Ivan Posva 2011/10/18 21:31:53 Agreed, but as I said it should not matter as all
+
#include "include/dart_api.h"
#include "bin/builtin.h"
@@ -19,6 +20,7 @@ void PrintString(FILE* out, Dart_Handle string) {
const char* cstring = Dart_IsValidResult(result) ?
Dart_GetResultAsCString(result) : Dart_GetErrorCString(result);
fprintf(out, "%s\n", cstring);
+ fflush(out);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698