| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #if defined(DART_IO_DISABLED) | 5 #if defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 namespace bin { | 12 namespace bin { |
| 13 | 13 |
| 14 |
| 15 void FUNCTION_NAME(File_GetPointer)(Dart_NativeArguments args) { |
| 16 Dart_ThrowException(DartUtils::NewInternalError( |
| 17 "File is not supported on this platform")); |
| 18 } |
| 19 |
| 20 |
| 21 void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) { |
| 22 Dart_ThrowException(DartUtils::NewInternalError( |
| 23 "File is not supported on this platform")); |
| 24 } |
| 25 |
| 26 |
| 14 void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) { | 27 void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) { |
| 15 Dart_ThrowException(DartUtils::NewInternalError( | 28 Dart_ThrowException(DartUtils::NewInternalError( |
| 16 "File is not supported on this platform")); | 29 "File is not supported on this platform")); |
| 17 } | 30 } |
| 18 | 31 |
| 19 | 32 |
| 20 void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) { | 33 void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) { |
| 21 Dart_ThrowException(DartUtils::NewInternalError( | 34 Dart_ThrowException(DartUtils::NewInternalError( |
| 22 "File is not supported on this platform")); | 35 "File is not supported on this platform")); |
| 23 } | 36 } |
| 24 | 37 |
| 25 | 38 |
| 26 void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) { | 39 void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) { |
| 27 Dart_ThrowException(DartUtils::NewInternalError( | 40 Dart_ThrowException(DartUtils::NewInternalError( |
| 28 "File is not supported on this platform")); | 41 "File is not supported on this platform")); |
| 29 } | 42 } |
| 30 | |
| 31 | |
| 32 void FUNCTION_NAME(File_GetFD)(Dart_NativeArguments args) { | |
| 33 Dart_ThrowException(DartUtils::NewInternalError( | |
| 34 "File is not supported on this platform")); | |
| 35 } | |
| 36 | 43 |
| 37 | 44 |
| 38 void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) { | 45 void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) { |
| 39 Dart_ThrowException(DartUtils::NewInternalError( | 46 Dart_ThrowException(DartUtils::NewInternalError( |
| 40 "File is not supported on this platform")); | 47 "File is not supported on this platform")); |
| 41 } | 48 } |
| 42 | 49 |
| 43 | 50 |
| 44 void FUNCTION_NAME(File_WriteByte)(Dart_NativeArguments args) { | 51 void FUNCTION_NAME(File_WriteByte)(Dart_NativeArguments args) { |
| 45 Dart_ThrowException(DartUtils::NewInternalError( | 52 Dart_ThrowException(DartUtils::NewInternalError( |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 200 |
| 194 void FUNCTION_NAME(File_AreIdentical)(Dart_NativeArguments args) { | 201 void FUNCTION_NAME(File_AreIdentical)(Dart_NativeArguments args) { |
| 195 Dart_ThrowException(DartUtils::NewInternalError( | 202 Dart_ThrowException(DartUtils::NewInternalError( |
| 196 "File is not supported on this platform")); | 203 "File is not supported on this platform")); |
| 197 } | 204 } |
| 198 | 205 |
| 199 } // namespace bin | 206 } // namespace bin |
| 200 } // namespace dart | 207 } // namespace dart |
| 201 | 208 |
| 202 #endif // !defined(DART_IO_DISABLED) | 209 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |