| 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_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_RenameLink, 2) \ | 57 V(File_RenameLink, 2) \ |
| 58 V(File_ResolveSymbolicLinks, 1) \ | 58 V(File_ResolveSymbolicLinks, 1) \ |
| 59 V(File_OpenStdio, 1) \ | 59 V(File_OpenStdio, 1) \ |
| 60 V(File_GetStdioHandleType, 1) \ | 60 V(File_GetStdioHandleType, 1) \ |
| 61 V(File_GetType, 2) \ | 61 V(File_GetType, 2) \ |
| 62 V(File_AreIdentical, 2) \ | 62 V(File_AreIdentical, 2) \ |
| 63 V(FileSystemWatcher_CloseWatcher, 1) \ |
| 64 V(FileSystemWatcher_GetSocketId, 2) \ |
| 65 V(FileSystemWatcher_InitWatcher, 0) \ |
| 63 V(FileSystemWatcher_IsSupported, 0) \ | 66 V(FileSystemWatcher_IsSupported, 0) \ |
| 64 V(FileSystemWatcher_ReadEvents, 1) \ | 67 V(FileSystemWatcher_ReadEvents, 2) \ |
| 65 V(FileSystemWatcher_UnwatchPath, 1) \ | 68 V(FileSystemWatcher_UnwatchPath, 2) \ |
| 66 V(FileSystemWatcher_WatchPath, 4) \ | 69 V(FileSystemWatcher_WatchPath, 4) \ |
| 67 V(Logger_PrintString, 1) | 70 V(Logger_PrintString, 1) |
| 68 | 71 |
| 69 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); | 72 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); |
| 70 | 73 |
| 71 static struct NativeEntries { | 74 static struct NativeEntries { |
| 72 const char* name_; | 75 const char* name_; |
| 73 Dart_NativeFunction function_; | 76 Dart_NativeFunction function_; |
| 74 int argument_count_; | 77 int argument_count_; |
| 75 } BuiltinEntries[] = { | 78 } BuiltinEntries[] = { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Dart_StringToUTF8? We need to make sure not to swallow the | 114 // Dart_StringToUTF8? We need to make sure not to swallow the |
| 112 // interrupt. | 115 // interrupt. |
| 113 Platform::PrintBlocking(stdout, "%s\n", Dart_GetError(result)); | 116 Platform::PrintBlocking(stdout, "%s\n", Dart_GetError(result)); |
| 114 } else { | 117 } else { |
| 115 Platform::PrintBlocking(stdout, "%.*s\n", static_cast<int>(length), chars); | 118 Platform::PrintBlocking(stdout, "%.*s\n", static_cast<int>(length), chars); |
| 116 } | 119 } |
| 117 } | 120 } |
| 118 | 121 |
| 119 } // namespace bin | 122 } // namespace bin |
| 120 } // namespace dart | 123 } // namespace dart |
| OLD | NEW |