| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #if !defined(DART_IO_DISABLED) |
| 6 |
| 5 #include "bin/stdio.h" | 7 #include "bin/stdio.h" |
| 6 | 8 |
| 7 #include "bin/builtin.h" | 9 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 10 #include "bin/dartutils.h" |
| 9 #include "bin/utils.h" | 11 #include "bin/utils.h" |
| 10 | 12 |
| 13 #include "include/dart_api.h" |
| 14 |
| 11 #include "platform/globals.h" | 15 #include "platform/globals.h" |
| 12 #include "platform/utils.h" | 16 #include "platform/utils.h" |
| 13 | 17 |
| 14 #include "include/dart_api.h" | |
| 15 | |
| 16 namespace dart { | 18 namespace dart { |
| 17 namespace bin { | 19 namespace bin { |
| 18 | 20 |
| 19 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { | 21 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { |
| 20 ScopedBlockingCall blocker; | 22 ScopedBlockingCall blocker; |
| 21 Dart_SetReturnValue(args, Dart_NewInteger(Stdin::ReadByte())); | 23 Dart_SetReturnValue(args, Dart_NewInteger(Stdin::ReadByte())); |
| 22 } | 24 } |
| 23 | 25 |
| 24 | 26 |
| 25 void FUNCTION_NAME(Stdin_GetEchoMode)(Dart_NativeArguments args) { | 27 void FUNCTION_NAME(Stdin_GetEchoMode)(Dart_NativeArguments args) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 Dart_ListSetAt(list, 0, Dart_NewInteger(size[0])); | 64 Dart_ListSetAt(list, 0, Dart_NewInteger(size[0])); |
| 63 Dart_ListSetAt(list, 1, Dart_NewInteger(size[1])); | 65 Dart_ListSetAt(list, 1, Dart_NewInteger(size[1])); |
| 64 Dart_SetReturnValue(args, list); | 66 Dart_SetReturnValue(args, list); |
| 65 } else { | 67 } else { |
| 66 Dart_SetReturnValue(args, DartUtils::NewDartOSError()); | 68 Dart_SetReturnValue(args, DartUtils::NewDartOSError()); |
| 67 } | 69 } |
| 68 } | 70 } |
| 69 | 71 |
| 70 } // namespace bin | 72 } // namespace bin |
| 71 } // namespace dart | 73 } // namespace dart |
| 74 |
| 75 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |