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/io_natives.h" | 5 #include "bin/io_natives.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 V(Socket_Available, 1) \ | 61 V(Socket_Available, 1) \ |
62 V(Socket_Read, 2) \ | 62 V(Socket_Read, 2) \ |
63 V(Socket_WriteList, 4) \ | 63 V(Socket_WriteList, 4) \ |
64 V(Socket_GetPort, 1) \ | 64 V(Socket_GetPort, 1) \ |
65 V(Socket_GetRemotePeer, 1) \ | 65 V(Socket_GetRemotePeer, 1) \ |
66 V(Socket_GetError, 1) \ | 66 V(Socket_GetError, 1) \ |
67 V(Socket_GetStdioHandle, 2) \ | 67 V(Socket_GetStdioHandle, 2) \ |
68 V(Socket_NewServicePort, 0) \ | 68 V(Socket_NewServicePort, 0) \ |
69 V(Socket_GetType, 1) \ | 69 V(Socket_GetType, 1) \ |
70 V(Socket_SetOption, 3) \ | 70 V(Socket_SetOption, 3) \ |
| 71 V(Socket_SetSocketId, 2) \ |
71 V(Stdin_ReadByte, 1) \ | 72 V(Stdin_ReadByte, 1) \ |
72 V(Stdin_SetEchoMode, 2) \ | 73 V(Stdin_SetEchoMode, 2) \ |
73 V(Stdin_SetLineMode, 2) \ | 74 V(Stdin_SetLineMode, 2) \ |
74 V(StringToSystemEncoding, 1) \ | 75 V(StringToSystemEncoding, 1) \ |
75 V(SystemEncodingToString, 1) | 76 V(SystemEncodingToString, 1) |
76 | 77 |
77 | 78 |
78 IO_NATIVE_LIST(DECLARE_FUNCTION); | 79 IO_NATIVE_LIST(DECLARE_FUNCTION); |
79 | 80 |
80 static struct NativeEntries { | 81 static struct NativeEntries { |
(...skipping 17 matching lines...) Expand all Loading... |
98 if (!strcmp(function_name, entry->name_) && | 99 if (!strcmp(function_name, entry->name_) && |
99 (entry->argument_count_ == argument_count)) { | 100 (entry->argument_count_ == argument_count)) { |
100 return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 101 return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
101 } | 102 } |
102 } | 103 } |
103 return NULL; | 104 return NULL; |
104 } | 105 } |
105 | 106 |
106 } // namespace bin | 107 } // namespace bin |
107 } // namespace dart | 108 } // namespace dart |
OLD | NEW |