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 13 matching lines...) Expand all Loading... |
24 V(Directory_Exists, 1) \ | 24 V(Directory_Exists, 1) \ |
25 V(Directory_Create, 1) \ | 25 V(Directory_Create, 1) \ |
26 V(Directory_Current, 0) \ | 26 V(Directory_Current, 0) \ |
27 V(Directory_SetCurrent, 1) \ | 27 V(Directory_SetCurrent, 1) \ |
28 V(Directory_SystemTemp, 0) \ | 28 V(Directory_SystemTemp, 0) \ |
29 V(Directory_CreateTemp, 1) \ | 29 V(Directory_CreateTemp, 1) \ |
30 V(Directory_Delete, 2) \ | 30 V(Directory_Delete, 2) \ |
31 V(Directory_Rename, 2) \ | 31 V(Directory_Rename, 2) \ |
32 V(Directory_List, 3) \ | 32 V(Directory_List, 3) \ |
33 V(EventHandler_SendData, 3) \ | 33 V(EventHandler_SendData, 3) \ |
| 34 V(EventHandler_TimerMillisecondClock, 0) \ |
34 V(File_Open, 2) \ | 35 V(File_Open, 2) \ |
35 V(File_Exists, 1) \ | 36 V(File_Exists, 1) \ |
36 V(File_GetFD, 1) \ | 37 V(File_GetFD, 1) \ |
37 V(File_Close, 1) \ | 38 V(File_Close, 1) \ |
38 V(File_ReadByte, 1) \ | 39 V(File_ReadByte, 1) \ |
39 V(File_WriteByte, 2) \ | 40 V(File_WriteByte, 2) \ |
40 V(File_Read, 2) \ | 41 V(File_Read, 2) \ |
41 V(File_ReadInto, 4) \ | 42 V(File_ReadInto, 4) \ |
42 V(File_WriteFrom, 4) \ | 43 V(File_WriteFrom, 4) \ |
43 V(File_Position, 1) \ | 44 V(File_Position, 1) \ |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 struct NativeEntries* entry = &(IOEntries[i]); | 186 struct NativeEntries* entry = &(IOEntries[i]); |
186 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 187 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
187 return reinterpret_cast<const uint8_t*>(entry->name_); | 188 return reinterpret_cast<const uint8_t*>(entry->name_); |
188 } | 189 } |
189 } | 190 } |
190 return NULL; | 191 return NULL; |
191 } | 192 } |
192 | 193 |
193 } // namespace bin | 194 } // namespace bin |
194 } // namespace dart | 195 } // namespace dart |
OLD | NEW |