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 #ifndef RUNTIME_BIN_STDIO_H_ | 5 #ifndef RUNTIME_BIN_STDIO_H_ |
6 #define RUNTIME_BIN_STDIO_H_ | 6 #define RUNTIME_BIN_STDIO_H_ |
7 | 7 |
8 #if defined(DART_IO_DISABLED) | 8 #if defined(DART_IO_DISABLED) |
9 #error "stdio.h can only be included on builds with IO enabled" | 9 #error "stdio.h can only be included on builds with IO enabled" |
10 #endif | 10 #endif |
(...skipping 16 matching lines...) Expand all Loading... |
27 static bool GetLineMode(bool* enabled); | 27 static bool GetLineMode(bool* enabled); |
28 static bool SetLineMode(bool enabled); | 28 static bool SetLineMode(bool enabled); |
29 | 29 |
30 static bool AnsiSupported(bool* supported); | 30 static bool AnsiSupported(bool* supported); |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_ALLOCATION(); | 33 DISALLOW_ALLOCATION(); |
34 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdin); | 34 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdin); |
35 }; | 35 }; |
36 | 36 |
37 | |
38 class Stdout { | 37 class Stdout { |
39 public: | 38 public: |
40 static bool GetTerminalSize(intptr_t fd, int size[2]); | 39 static bool GetTerminalSize(intptr_t fd, int size[2]); |
41 static bool AnsiSupported(intptr_t fd, bool* supported); | 40 static bool AnsiSupported(intptr_t fd, bool* supported); |
42 | 41 |
43 private: | 42 private: |
44 DISALLOW_ALLOCATION(); | 43 DISALLOW_ALLOCATION(); |
45 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdout); | 44 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdout); |
46 }; | 45 }; |
47 | 46 |
48 } // namespace bin | 47 } // namespace bin |
49 } // namespace dart | 48 } // namespace dart |
50 | 49 |
51 #endif // RUNTIME_BIN_STDIO_H_ | 50 #endif // RUNTIME_BIN_STDIO_H_ |
OLD | NEW |