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

Unified Diff: bin/builtin.cc

Issue 8347023: - Fix which headers are included. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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: bin/builtin.cc
===================================================================
--- bin/builtin.cc (revision 543)
+++ bin/builtin.cc (working copy)
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include <string>
+#include <stdio.h>
#include "include/dart_api.h"
@@ -11,8 +11,8 @@
// Implementation of native functions which are used for some
// test/debug functionality in standalone dart mode.
-void PrintString(FILE* out, Dart_Handle string) {
- Dart_Result result = Dart_StringToCString(string);
+void PrintString(FILE* out, Dart_Handle str) {
+ Dart_Result result = Dart_StringToCString(str);
const char* cstring = Dart_IsValidResult(result) ?
Dart_GetResultAsCString(result) : Dart_GetErrorCString(result);
fprintf(out, "%s\n", cstring);
« 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