| 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);
|
|
|