| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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) | 5 #if defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 namespace bin { | 12 namespace bin { |
| 13 | 13 |
| 14 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { | 14 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { |
| 15 Dart_ThrowException( | 15 Dart_ThrowException( |
| 16 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 16 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 17 } | 17 } |
| 18 | 18 |
| 19 | |
| 20 void FUNCTION_NAME(Stdin_GetEchoMode)(Dart_NativeArguments args) { | 19 void FUNCTION_NAME(Stdin_GetEchoMode)(Dart_NativeArguments args) { |
| 21 Dart_ThrowException( | 20 Dart_ThrowException( |
| 22 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 21 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 23 } | 22 } |
| 24 | 23 |
| 25 | |
| 26 void FUNCTION_NAME(Stdin_SetEchoMode)(Dart_NativeArguments args) { | 24 void FUNCTION_NAME(Stdin_SetEchoMode)(Dart_NativeArguments args) { |
| 27 Dart_ThrowException( | 25 Dart_ThrowException( |
| 28 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 26 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 29 } | 27 } |
| 30 | 28 |
| 31 | |
| 32 void FUNCTION_NAME(Stdin_GetLineMode)(Dart_NativeArguments args) { | 29 void FUNCTION_NAME(Stdin_GetLineMode)(Dart_NativeArguments args) { |
| 33 Dart_ThrowException( | 30 Dart_ThrowException( |
| 34 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 31 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 35 } | 32 } |
| 36 | 33 |
| 37 | |
| 38 void FUNCTION_NAME(Stdin_SetLineMode)(Dart_NativeArguments args) { | 34 void FUNCTION_NAME(Stdin_SetLineMode)(Dart_NativeArguments args) { |
| 39 Dart_ThrowException( | 35 Dart_ThrowException( |
| 40 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 36 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 41 } | 37 } |
| 42 | 38 |
| 43 | |
| 44 void FUNCTION_NAME(Stdin_AnsiSupported)(Dart_NativeArguments args) { | 39 void FUNCTION_NAME(Stdin_AnsiSupported)(Dart_NativeArguments args) { |
| 45 Dart_ThrowException( | 40 Dart_ThrowException( |
| 46 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 41 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 47 } | 42 } |
| 48 | 43 |
| 49 | |
| 50 void FUNCTION_NAME(Stdout_GetTerminalSize)(Dart_NativeArguments args) { | 44 void FUNCTION_NAME(Stdout_GetTerminalSize)(Dart_NativeArguments args) { |
| 51 Dart_ThrowException( | 45 Dart_ThrowException( |
| 52 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); | 46 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); |
| 53 } | 47 } |
| 54 | 48 |
| 55 | |
| 56 void FUNCTION_NAME(Stdout_AnsiSupported)(Dart_NativeArguments args) { | 49 void FUNCTION_NAME(Stdout_AnsiSupported)(Dart_NativeArguments args) { |
| 57 Dart_ThrowException( | 50 Dart_ThrowException( |
| 58 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); | 51 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); |
| 59 } | 52 } |
| 60 | 53 |
| 61 } // namespace bin | 54 } // namespace bin |
| 62 } // namespace dart | 55 } // namespace dart |
| 63 | 56 |
| 64 #endif // defined(DART_IO_DISABLED) | 57 #endif // defined(DART_IO_DISABLED) |
| OLD | NEW |