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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 V(Socket_SendTo, 6) \ | 125 V(Socket_SendTo, 6) \ |
126 V(Socket_GetPort, 1) \ | 126 V(Socket_GetPort, 1) \ |
127 V(Socket_GetRemotePeer, 1) \ | 127 V(Socket_GetRemotePeer, 1) \ |
128 V(Socket_GetError, 1) \ | 128 V(Socket_GetError, 1) \ |
129 V(Socket_GetStdioHandle, 2) \ | 129 V(Socket_GetStdioHandle, 2) \ |
130 V(Socket_GetType, 1) \ | 130 V(Socket_GetType, 1) \ |
131 V(Socket_GetOption, 3) \ | 131 V(Socket_GetOption, 3) \ |
132 V(Socket_SetOption, 4) \ | 132 V(Socket_SetOption, 4) \ |
133 V(Socket_JoinMulticast, 4) \ | 133 V(Socket_JoinMulticast, 4) \ |
134 V(Socket_LeaveMulticast, 4) \ | 134 V(Socket_LeaveMulticast, 4) \ |
135 V(Socket_MarkSocketAsSharedHack, 1) \ | |
136 V(Socket_GetSocketId, 1) \ | 135 V(Socket_GetSocketId, 1) \ |
137 V(Socket_SetSocketId, 2) \ | 136 V(Socket_SetSocketId, 2) \ |
138 V(Stdin_ReadByte, 1) \ | 137 V(Stdin_ReadByte, 1) \ |
139 V(Stdin_GetEchoMode, 0) \ | 138 V(Stdin_GetEchoMode, 0) \ |
140 V(Stdin_SetEchoMode, 1) \ | 139 V(Stdin_SetEchoMode, 1) \ |
141 V(Stdin_GetLineMode, 0) \ | 140 V(Stdin_GetLineMode, 0) \ |
142 V(Stdin_SetLineMode, 1) \ | 141 V(Stdin_SetLineMode, 1) \ |
143 V(Stdout_GetTerminalSize, 1) \ | 142 V(Stdout_GetTerminalSize, 1) \ |
144 V(StringToSystemEncoding, 1) \ | 143 V(StringToSystemEncoding, 1) \ |
145 V(SystemEncodingToString, 1) \ | 144 V(SystemEncodingToString, 1) \ |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 struct NativeEntries* entry = &(IOEntries[i]); | 185 struct NativeEntries* entry = &(IOEntries[i]); |
187 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 186 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
188 return reinterpret_cast<const uint8_t*>(entry->name_); | 187 return reinterpret_cast<const uint8_t*>(entry->name_); |
189 } | 188 } |
190 } | 189 } |
191 return NULL; | 190 return NULL; |
192 } | 191 } |
193 | 192 |
194 } // namespace bin | 193 } // namespace bin |
195 } // namespace dart | 194 } // namespace dart |
OLD | NEW |