Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: runtime/bin/directory_unsupported.cc

Issue 1904553006: Fix strong mode errors in dart:io. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix directory_list rename for dartium. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/directory_patch.dart ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 "Directory is not supported on this platform")); 52 "Directory is not supported on this platform"));
53 } 53 }
54 54
55 55
56 void FUNCTION_NAME(Directory_Rename)(Dart_NativeArguments args) { 56 void FUNCTION_NAME(Directory_Rename)(Dart_NativeArguments args) {
57 Dart_ThrowException(DartUtils::NewInternalError( 57 Dart_ThrowException(DartUtils::NewInternalError(
58 "Directory is not supported on this platform")); 58 "Directory is not supported on this platform"));
59 } 59 }
60 60
61 61
62 void FUNCTION_NAME(Directory_List)(Dart_NativeArguments args) { 62 void FUNCTION_NAME(Directory_FillWithDirectoryListing)(
63 Dart_NativeArguments args) {
63 Dart_ThrowException(DartUtils::NewInternalError( 64 Dart_ThrowException(DartUtils::NewInternalError(
64 "Directory is not supported on this platform")); 65 "Directory is not supported on this platform"));
65 } 66 }
66 67
67 68
68 void FUNCTION_NAME(Directory_GetAsyncDirectoryListerPointer)( 69 void FUNCTION_NAME(Directory_GetAsyncDirectoryListerPointer)(
69 Dart_NativeArguments args) { 70 Dart_NativeArguments args) {
70 Dart_ThrowException(DartUtils::NewInternalError( 71 Dart_ThrowException(DartUtils::NewInternalError(
71 "Directory is not supported on this platform")); 72 "Directory is not supported on this platform"));
72 } 73 }
73 74
74 75
75 void FUNCTION_NAME(Directory_SetAsyncDirectoryListerPointer)( 76 void FUNCTION_NAME(Directory_SetAsyncDirectoryListerPointer)(
76 Dart_NativeArguments args) { 77 Dart_NativeArguments args) {
77 Dart_ThrowException(DartUtils::NewInternalError( 78 Dart_ThrowException(DartUtils::NewInternalError(
78 "Directory is not supported on this platform")); 79 "Directory is not supported on this platform"));
79 } 80 }
80 81
81 } // namespace bin 82 } // namespace bin
82 } // namespace dart 83 } // namespace dart
83 84
84 #endif // defined(DART_IO_DISABLED) 85 #endif // defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/directory_patch.dart ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698