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 #include "bin/builtin.h" | 5 #include "bin/builtin.h" |
6 #include "bin/dartutils.h" | 6 #include "bin/dartutils.h" |
7 #include "bin/utils.h" | 7 #include "bin/utils.h" |
8 #include "bin/stdio.h" | 8 #include "bin/stdio.h" |
9 | 9 |
10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
11 #include "platform/thread.h" | |
12 #include "platform/utils.h" | 11 #include "platform/utils.h" |
13 | 12 |
14 #include "include/dart_api.h" | 13 #include "include/dart_api.h" |
15 | 14 |
16 | 15 |
17 namespace dart { | 16 namespace dart { |
18 namespace bin { | 17 namespace bin { |
19 | 18 |
20 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { | 19 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { |
21 ScopedBlockingCall blocker; | 20 ScopedBlockingCall blocker; |
(...skipping 30 matching lines...) Expand all Loading... |
52 Dart_ListSetAt(list, 0, Dart_NewInteger(size[0])); | 51 Dart_ListSetAt(list, 0, Dart_NewInteger(size[0])); |
53 Dart_ListSetAt(list, 1, Dart_NewInteger(size[1])); | 52 Dart_ListSetAt(list, 1, Dart_NewInteger(size[1])); |
54 Dart_SetReturnValue(args, list); | 53 Dart_SetReturnValue(args, list); |
55 } else { | 54 } else { |
56 Dart_SetReturnValue(args, DartUtils::NewDartOSError()); | 55 Dart_SetReturnValue(args, DartUtils::NewDartOSError()); |
57 } | 56 } |
58 } | 57 } |
59 | 58 |
60 } // namespace bin | 59 } // namespace bin |
61 } // namespace dart | 60 } // namespace dart |
OLD | NEW |