OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 V(File_Delete, 1) \ | 53 V(File_Delete, 1) \ |
54 V(File_DeleteLink, 1) \ | 54 V(File_DeleteLink, 1) \ |
55 V(File_Rename, 2) \ | 55 V(File_Rename, 2) \ |
56 V(File_RenameLink, 2) \ | 56 V(File_RenameLink, 2) \ |
57 V(File_FullPath, 1) \ | 57 V(File_FullPath, 1) \ |
58 V(File_OpenStdio, 1) \ | 58 V(File_OpenStdio, 1) \ |
59 V(File_GetStdioHandleType, 1) \ | 59 V(File_GetStdioHandleType, 1) \ |
60 V(File_GetType, 2) \ | 60 V(File_GetType, 2) \ |
61 V(File_AreIdentical, 2) \ | 61 V(File_AreIdentical, 2) \ |
62 V(File_NewServicePort, 0) \ | 62 V(File_NewServicePort, 0) \ |
| 63 V(FileSystemWatcher_ReadEvents, 1) \ |
| 64 V(FileSystemWatcher_UnwatchPath, 1) \ |
| 65 V(FileSystemWatcher_WatchPath, 4) \ |
63 V(Logger_PrintString, 1) | 66 V(Logger_PrintString, 1) |
64 | 67 |
65 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); | 68 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); |
66 | 69 |
67 static struct NativeEntries { | 70 static struct NativeEntries { |
68 const char* name_; | 71 const char* name_; |
69 Dart_NativeFunction function_; | 72 Dart_NativeFunction function_; |
70 int argument_count_; | 73 int argument_count_; |
71 } BuiltinEntries[] = { | 74 } BuiltinEntries[] = { |
72 BUILTIN_NATIVE_LIST(REGISTER_FUNCTION) | 75 BUILTIN_NATIVE_LIST(REGISTER_FUNCTION) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 fputs(Dart_GetError(result), stdout); | 112 fputs(Dart_GetError(result), stdout); |
110 } else { | 113 } else { |
111 fwrite(chars, sizeof(*chars), length, stdout); | 114 fwrite(chars, sizeof(*chars), length, stdout); |
112 } | 115 } |
113 fputc('\n', stdout); | 116 fputc('\n', stdout); |
114 fflush(stdout); | 117 fflush(stdout); |
115 } | 118 } |
116 | 119 |
117 } // namespace bin | 120 } // namespace bin |
118 } // namespace dart | 121 } // namespace dart |
OLD | NEW |