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_LengthFromPath, 1) \ | 47 V(File_LengthFromPath, 1) \ |
48 V(File_Stat, 1) \ | 48 V(File_Stat, 1) \ |
49 V(File_LastModified, 1) \ | 49 V(File_LastModified, 1) \ |
50 V(File_Flush, 1) \ | 50 V(File_Flush, 1) \ |
51 V(File_Create, 1) \ | 51 V(File_Create, 1) \ |
52 V(File_CreateLink, 2) \ | 52 V(File_CreateLink, 2) \ |
53 V(File_LinkTarget, 1) \ | 53 V(File_LinkTarget, 1) \ |
54 V(File_Delete, 1) \ | 54 V(File_Delete, 1) \ |
55 V(File_DeleteLink, 1) \ | 55 V(File_DeleteLink, 1) \ |
56 V(File_Rename, 2) \ | 56 V(File_Rename, 2) \ |
| 57 V(File_Copy, 2) \ |
57 V(File_RenameLink, 2) \ | 58 V(File_RenameLink, 2) \ |
58 V(File_ResolveSymbolicLinks, 1) \ | 59 V(File_ResolveSymbolicLinks, 1) \ |
59 V(File_OpenStdio, 1) \ | 60 V(File_OpenStdio, 1) \ |
60 V(File_GetStdioHandleType, 1) \ | 61 V(File_GetStdioHandleType, 1) \ |
61 V(File_GetType, 2) \ | 62 V(File_GetType, 2) \ |
62 V(File_AreIdentical, 2) \ | 63 V(File_AreIdentical, 2) \ |
63 V(FileSystemWatcher_CloseWatcher, 1) \ | 64 V(FileSystemWatcher_CloseWatcher, 1) \ |
64 V(FileSystemWatcher_GetSocketId, 2) \ | 65 V(FileSystemWatcher_GetSocketId, 2) \ |
65 V(FileSystemWatcher_InitWatcher, 0) \ | 66 V(FileSystemWatcher_InitWatcher, 0) \ |
66 V(FileSystemWatcher_IsSupported, 0) \ | 67 V(FileSystemWatcher_IsSupported, 0) \ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Dart_StringToUTF8? We need to make sure not to swallow the | 115 // Dart_StringToUTF8? We need to make sure not to swallow the |
115 // interrupt. | 116 // interrupt. |
116 Platform::PrintBlocking(stdout, "%s\n", Dart_GetError(result)); | 117 Platform::PrintBlocking(stdout, "%s\n", Dart_GetError(result)); |
117 } else { | 118 } else { |
118 Platform::PrintBlocking(stdout, "%.*s\n", static_cast<int>(length), chars); | 119 Platform::PrintBlocking(stdout, "%.*s\n", static_cast<int>(length), chars); |
119 } | 120 } |
120 } | 121 } |
121 | 122 |
122 } // namespace bin | 123 } // namespace bin |
123 } // namespace dart | 124 } // namespace dart |
OLD | NEW |