| 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 "platform/globals.h" | 7 #include "platform/globals.h" |
| 8 #if defined(TARGET_OS_FUCHSIA) | 8 #if defined(TARGET_OS_FUCHSIA) |
| 9 | 9 |
| 10 #include "bin/stdio.h" | 10 #include "bin/stdio.h" |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 namespace bin { | 13 namespace bin { |
| 14 | 14 |
| 15 int Stdin::ReadByte() { | 15 bool Stdin::ReadByte(int* byte) { |
| 16 UNIMPLEMENTED(); | |
| 17 return -1; | |
| 18 } | |
| 19 | |
| 20 | |
| 21 bool Stdin::GetEchoMode() { | |
| 22 UNIMPLEMENTED(); | 16 UNIMPLEMENTED(); |
| 23 return false; | 17 return false; |
| 24 } | 18 } |
| 25 | 19 |
| 26 | 20 |
| 27 void Stdin::SetEchoMode(bool enabled) { | 21 bool Stdin::GetEchoMode(bool* enabled) { |
| 28 UNIMPLEMENTED(); | |
| 29 } | |
| 30 | |
| 31 | |
| 32 bool Stdin::GetLineMode() { | |
| 33 UNIMPLEMENTED(); | 22 UNIMPLEMENTED(); |
| 34 return false; | 23 return false; |
| 35 } | 24 } |
| 36 | 25 |
| 37 | 26 |
| 38 void Stdin::SetLineMode(bool enabled) { | 27 bool Stdin::SetEchoMode(bool enabled) { |
| 39 UNIMPLEMENTED(); | 28 UNIMPLEMENTED(); |
| 29 return false; |
| 40 } | 30 } |
| 41 | 31 |
| 42 | 32 |
| 33 bool Stdin::GetLineMode(bool* enabled) { |
| 34 UNIMPLEMENTED(); |
| 35 return false; |
| 36 } |
| 37 |
| 38 |
| 39 bool Stdin::SetLineMode(bool enabled) { |
| 40 UNIMPLEMENTED(); |
| 41 return false; |
| 42 } |
| 43 |
| 44 |
| 43 bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) { | 45 bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) { |
| 44 UNIMPLEMENTED(); | 46 UNIMPLEMENTED(); |
| 45 return false; | 47 return false; |
| 46 } | 48 } |
| 47 | 49 |
| 48 } // namespace bin | 50 } // namespace bin |
| 49 } // namespace dart | 51 } // namespace dart |
| 50 | 52 |
| 51 #endif // defined(TARGET_OS_FUCHSIA) | 53 #endif // defined(TARGET_OS_FUCHSIA) |
| 52 | 54 |
| 53 #endif // !defined(DART_IO_DISABLED) | 55 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |