| 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 17 matching lines...) Expand all  Loading... | 
|  28   V(Filter_Processed, 2)                                                       \ |  28   V(Filter_Processed, 2)                                                       \ | 
|  29   V(Platform_NumberOfProcessors, 0)                                            \ |  29   V(Platform_NumberOfProcessors, 0)                                            \ | 
|  30   V(Platform_OperatingSystem, 0)                                               \ |  30   V(Platform_OperatingSystem, 0)                                               \ | 
|  31   V(Platform_PathSeparator, 0)                                                 \ |  31   V(Platform_PathSeparator, 0)                                                 \ | 
|  32   V(Platform_LocalHostname, 0)                                                 \ |  32   V(Platform_LocalHostname, 0)                                                 \ | 
|  33   V(Platform_Environment, 0)                                                   \ |  33   V(Platform_Environment, 0)                                                   \ | 
|  34   V(Process_Start, 10)                                                         \ |  34   V(Process_Start, 10)                                                         \ | 
|  35   V(Process_Kill, 3)                                                           \ |  35   V(Process_Kill, 3)                                                           \ | 
|  36   V(Process_SetExitCode, 1)                                                    \ |  36   V(Process_SetExitCode, 1)                                                    \ | 
|  37   V(Process_Exit, 1)                                                           \ |  37   V(Process_Exit, 1)                                                           \ | 
|  38   V(Process_Sleep, 1)                                                          \ |  | 
|  39   V(ServerSocket_CreateBindListen, 4)                                          \ |  38   V(ServerSocket_CreateBindListen, 4)                                          \ | 
|  40   V(ServerSocket_Accept, 2)                                                    \ |  39   V(ServerSocket_Accept, 2)                                                    \ | 
|  41   V(Socket_CreateConnect, 3)                                                   \ |  40   V(Socket_CreateConnect, 3)                                                   \ | 
|  42   V(Socket_Available, 1)                                                       \ |  41   V(Socket_Available, 1)                                                       \ | 
|  43   V(Socket_Read, 2)                                                            \ |  42   V(Socket_Read, 2)                                                            \ | 
|  44   V(Socket_ReadList, 4)                                                        \ |  43   V(Socket_ReadList, 4)                                                        \ | 
|  45   V(Socket_WriteList, 4)                                                       \ |  44   V(Socket_WriteList, 4)                                                       \ | 
|  46   V(Socket_GetPort, 1)                                                         \ |  45   V(Socket_GetPort, 1)                                                         \ | 
|  47   V(Socket_GetRemotePeer, 1)                                                   \ |  46   V(Socket_GetRemotePeer, 1)                                                   \ | 
|  48   V(Socket_GetError, 1)                                                        \ |  47   V(Socket_GetError, 1)                                                        \ | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  83   int num_entries = sizeof(IOEntries) / sizeof(struct NativeEntries); |  82   int num_entries = sizeof(IOEntries) / sizeof(struct NativeEntries); | 
|  84   for (int i = 0; i < num_entries; i++) { |  83   for (int i = 0; i < num_entries; i++) { | 
|  85     struct NativeEntries* entry = &(IOEntries[i]); |  84     struct NativeEntries* entry = &(IOEntries[i]); | 
|  86     if (!strcmp(function_name, entry->name_) && |  85     if (!strcmp(function_name, entry->name_) && | 
|  87         (entry->argument_count_ == argument_count)) { |  86         (entry->argument_count_ == argument_count)) { | 
|  88       return reinterpret_cast<Dart_NativeFunction>(entry->function_); |  87       return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 
|  89     } |  88     } | 
|  90   } |  89   } | 
|  91   return NULL; |  90   return NULL; | 
|  92 } |  91 } | 
| OLD | NEW |