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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 V(File_Stat, 1) \ | 47 V(File_Stat, 1) \ |
48 V(File_LastModified, 1) \ | 48 V(File_LastModified, 1) \ |
49 V(File_Flush, 1) \ | 49 V(File_Flush, 1) \ |
50 V(File_Create, 1) \ | 50 V(File_Create, 1) \ |
51 V(File_CreateLink, 2) \ | 51 V(File_CreateLink, 2) \ |
52 V(File_LinkTarget, 1) \ | 52 V(File_LinkTarget, 1) \ |
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_ResolveSymbolicLinks, 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_IsSupported, 0) \ | 63 V(FileSystemWatcher_IsSupported, 0) \ |
64 V(FileSystemWatcher_ReadEvents, 1) \ | 64 V(FileSystemWatcher_ReadEvents, 1) \ |
65 V(FileSystemWatcher_UnwatchPath, 1) \ | 65 V(FileSystemWatcher_UnwatchPath, 1) \ |
66 V(FileSystemWatcher_WatchPath, 4) \ | 66 V(FileSystemWatcher_WatchPath, 4) \ |
67 V(Logger_PrintString, 1) | 67 V(Logger_PrintString, 1) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 fputs(Dart_GetError(result), stdout); | 113 fputs(Dart_GetError(result), stdout); |
114 } else { | 114 } else { |
115 fwrite(chars, sizeof(*chars), length, stdout); | 115 fwrite(chars, sizeof(*chars), length, stdout); |
116 } | 116 } |
117 fputc('\n', stdout); | 117 fputc('\n', stdout); |
118 fflush(stdout); | 118 fflush(stdout); |
119 } | 119 } |
120 | 120 |
121 } // namespace bin | 121 } // namespace bin |
122 } // namespace dart | 122 } // namespace dart |
OLD | NEW |