| 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 27 matching lines...) Expand all Loading... |
| 38 V(Platform_ExecutableArguments, 0) \ | 38 V(Platform_ExecutableArguments, 0) \ |
| 39 V(Platform_PackageRoot, 0) \ | 39 V(Platform_PackageRoot, 0) \ |
| 40 V(Platform_GetVersion, 0) \ | 40 V(Platform_GetVersion, 0) \ |
| 41 V(Process_Start, 10) \ | 41 V(Process_Start, 10) \ |
| 42 V(Process_Wait, 5) \ | 42 V(Process_Wait, 5) \ |
| 43 V(Process_Kill, 3) \ | 43 V(Process_Kill, 3) \ |
| 44 V(Process_SetExitCode, 1) \ | 44 V(Process_SetExitCode, 1) \ |
| 45 V(Process_Exit, 1) \ | 45 V(Process_Exit, 1) \ |
| 46 V(Process_Sleep, 1) \ | 46 V(Process_Sleep, 1) \ |
| 47 V(Process_Pid, 1) \ | 47 V(Process_Pid, 1) \ |
| 48 V(Process_SetSignalHandler, 1) \ | |
| 49 V(Process_ClearSignalHandler, 1) \ | |
| 50 V(SecureSocket_Connect, 9) \ | 48 V(SecureSocket_Connect, 9) \ |
| 51 V(SecureSocket_Destroy, 1) \ | 49 V(SecureSocket_Destroy, 1) \ |
| 52 V(SecureSocket_Handshake, 1) \ | 50 V(SecureSocket_Handshake, 1) \ |
| 53 V(SecureSocket_Init, 1) \ | 51 V(SecureSocket_Init, 1) \ |
| 54 V(SecureSocket_PeerCertificate, 1) \ | 52 V(SecureSocket_PeerCertificate, 1) \ |
| 55 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 53 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
| 56 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 54 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
| 57 V(SecureSocket_Renegotiate, 4) \ | 55 V(SecureSocket_Renegotiate, 4) \ |
| 58 V(SecureSocket_InitializeLibrary, 3) \ | 56 V(SecureSocket_InitializeLibrary, 3) \ |
| 59 V(SecureSocket_FilterPointer, 1) \ | 57 V(SecureSocket_FilterPointer, 1) \ |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 if (!strcmp(function_name, entry->name_) && | 107 if (!strcmp(function_name, entry->name_) && |
| 110 (entry->argument_count_ == argument_count)) { | 108 (entry->argument_count_ == argument_count)) { |
| 111 return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 109 return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
| 112 } | 110 } |
| 113 } | 111 } |
| 114 return NULL; | 112 return NULL; |
| 115 } | 113 } |
| 116 | 114 |
| 117 } // namespace bin | 115 } // namespace bin |
| 118 } // namespace dart | 116 } // namespace dart |
| OLD | NEW |