| 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_IsSupported, 0) \ |
| 63 V(FileSystemWatcher_ReadEvents, 1) \ | 64 V(FileSystemWatcher_ReadEvents, 1) \ |
| 64 V(FileSystemWatcher_UnwatchPath, 1) \ | 65 V(FileSystemWatcher_UnwatchPath, 1) \ |
| 65 V(FileSystemWatcher_WatchPath, 4) \ | 66 V(FileSystemWatcher_WatchPath, 4) \ |
| 66 V(Logger_PrintString, 1) | 67 V(Logger_PrintString, 1) |
| 67 | 68 |
| 68 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); | 69 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); |
| 69 | 70 |
| 70 static struct NativeEntries { | 71 static struct NativeEntries { |
| 71 const char* name_; | 72 const char* name_; |
| 72 Dart_NativeFunction function_; | 73 Dart_NativeFunction function_; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 fputs(Dart_GetError(result), stdout); | 113 fputs(Dart_GetError(result), stdout); |
| 113 } else { | 114 } else { |
| 114 fwrite(chars, sizeof(*chars), length, stdout); | 115 fwrite(chars, sizeof(*chars), length, stdout); |
| 115 } | 116 } |
| 116 fputc('\n', stdout); | 117 fputc('\n', stdout); |
| 117 fflush(stdout); | 118 fflush(stdout); |
| 118 } | 119 } |
| 119 | 120 |
| 120 } // namespace bin | 121 } // namespace bin |
| 121 } // namespace dart | 122 } // namespace dart |
| OLD | NEW |