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

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

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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/file_test.cc ('k') | runtime/bin/file_win.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
11 namespace dart { 11 namespace dart {
12 namespace bin { 12 namespace bin {
13 13
14
15 void FUNCTION_NAME(File_GetPointer)(Dart_NativeArguments args) { 14 void FUNCTION_NAME(File_GetPointer)(Dart_NativeArguments args) {
16 Dart_ThrowException( 15 Dart_ThrowException(
17 DartUtils::NewInternalError("File is not supported on this platform")); 16 DartUtils::NewInternalError("File is not supported on this platform"));
18 } 17 }
19 18
20
21 void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) { 19 void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) {
22 Dart_ThrowException( 20 Dart_ThrowException(
23 DartUtils::NewInternalError("File is not supported on this platform")); 21 DartUtils::NewInternalError("File is not supported on this platform"));
24 } 22 }
25 23
26
27 void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) { 24 void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) {
28 Dart_ThrowException( 25 Dart_ThrowException(
29 DartUtils::NewInternalError("File is not supported on this platform")); 26 DartUtils::NewInternalError("File is not supported on this platform"));
30 } 27 }
31 28
32
33 void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) { 29 void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) {
34 Dart_ThrowException( 30 Dart_ThrowException(
35 DartUtils::NewInternalError("File is not supported on this platform")); 31 DartUtils::NewInternalError("File is not supported on this platform"));
36 } 32 }
37 33
38
39 void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) { 34 void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) {
40 Dart_ThrowException( 35 Dart_ThrowException(
41 DartUtils::NewInternalError("File is not supported on this platform")); 36 DartUtils::NewInternalError("File is not supported on this platform"));
42 } 37 }
43 38
44
45 void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) { 39 void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) {
46 Dart_ThrowException( 40 Dart_ThrowException(
47 DartUtils::NewInternalError("File is not supported on this platform")); 41 DartUtils::NewInternalError("File is not supported on this platform"));
48 } 42 }
49 43
50
51 void FUNCTION_NAME(File_WriteByte)(Dart_NativeArguments args) { 44 void FUNCTION_NAME(File_WriteByte)(Dart_NativeArguments args) {
52 Dart_ThrowException( 45 Dart_ThrowException(
53 DartUtils::NewInternalError("File is not supported on this platform")); 46 DartUtils::NewInternalError("File is not supported on this platform"));
54 } 47 }
55 48
56
57 void FUNCTION_NAME(File_Read)(Dart_NativeArguments args) { 49 void FUNCTION_NAME(File_Read)(Dart_NativeArguments args) {
58 Dart_ThrowException( 50 Dart_ThrowException(
59 DartUtils::NewInternalError("File is not supported on this platform")); 51 DartUtils::NewInternalError("File is not supported on this platform"));
60 } 52 }
61 53
62
63 void FUNCTION_NAME(File_ReadInto)(Dart_NativeArguments args) { 54 void FUNCTION_NAME(File_ReadInto)(Dart_NativeArguments args) {
64 Dart_ThrowException( 55 Dart_ThrowException(
65 DartUtils::NewInternalError("File is not supported on this platform")); 56 DartUtils::NewInternalError("File is not supported on this platform"));
66 } 57 }
67 58
68
69 void FUNCTION_NAME(File_WriteFrom)(Dart_NativeArguments args) { 59 void FUNCTION_NAME(File_WriteFrom)(Dart_NativeArguments args) {
70 Dart_ThrowException( 60 Dart_ThrowException(
71 DartUtils::NewInternalError("File is not supported on this platform")); 61 DartUtils::NewInternalError("File is not supported on this platform"));
72 } 62 }
73 63
74
75 void FUNCTION_NAME(File_Position)(Dart_NativeArguments args) { 64 void FUNCTION_NAME(File_Position)(Dart_NativeArguments args) {
76 Dart_ThrowException( 65 Dart_ThrowException(
77 DartUtils::NewInternalError("File is not supported on this platform")); 66 DartUtils::NewInternalError("File is not supported on this platform"));
78 } 67 }
79 68
80
81 void FUNCTION_NAME(File_SetPosition)(Dart_NativeArguments args) { 69 void FUNCTION_NAME(File_SetPosition)(Dart_NativeArguments args) {
82 Dart_ThrowException( 70 Dart_ThrowException(
83 DartUtils::NewInternalError("File is not supported on this platform")); 71 DartUtils::NewInternalError("File is not supported on this platform"));
84 } 72 }
85 73
86
87 void FUNCTION_NAME(File_Truncate)(Dart_NativeArguments args) { 74 void FUNCTION_NAME(File_Truncate)(Dart_NativeArguments args) {
88 Dart_ThrowException( 75 Dart_ThrowException(
89 DartUtils::NewInternalError("File is not supported on this platform")); 76 DartUtils::NewInternalError("File is not supported on this platform"));
90 } 77 }
91 78
92
93 void FUNCTION_NAME(File_Length)(Dart_NativeArguments args) { 79 void FUNCTION_NAME(File_Length)(Dart_NativeArguments args) {
94 Dart_ThrowException( 80 Dart_ThrowException(
95 DartUtils::NewInternalError("File is not supported on this platform")); 81 DartUtils::NewInternalError("File is not supported on this platform"));
96 } 82 }
97 83
98
99 void FUNCTION_NAME(File_LengthFromPath)(Dart_NativeArguments args) { 84 void FUNCTION_NAME(File_LengthFromPath)(Dart_NativeArguments args) {
100 Dart_ThrowException( 85 Dart_ThrowException(
101 DartUtils::NewInternalError("File is not supported on this platform")); 86 DartUtils::NewInternalError("File is not supported on this platform"));
102 } 87 }
103 88
104
105 void FUNCTION_NAME(File_LastModified)(Dart_NativeArguments args) { 89 void FUNCTION_NAME(File_LastModified)(Dart_NativeArguments args) {
106 Dart_ThrowException( 90 Dart_ThrowException(
107 DartUtils::NewInternalError("File is not supported on this platform")); 91 DartUtils::NewInternalError("File is not supported on this platform"));
108 } 92 }
109 93
110
111 void FUNCTION_NAME(File_LastAccessed)(Dart_NativeArguments args) { 94 void FUNCTION_NAME(File_LastAccessed)(Dart_NativeArguments args) {
112 Dart_ThrowException( 95 Dart_ThrowException(
113 DartUtils::NewInternalError("File is not supported on this platform")); 96 DartUtils::NewInternalError("File is not supported on this platform"));
114 } 97 }
115 98
116
117 void FUNCTION_NAME(File_SetLastModified)(Dart_NativeArguments args) { 99 void FUNCTION_NAME(File_SetLastModified)(Dart_NativeArguments args) {
118 Dart_ThrowException( 100 Dart_ThrowException(
119 DartUtils::NewInternalError("File is not supported on this platform")); 101 DartUtils::NewInternalError("File is not supported on this platform"));
120 } 102 }
121 103
122
123 void FUNCTION_NAME(File_SetLastAccessed)(Dart_NativeArguments args) { 104 void FUNCTION_NAME(File_SetLastAccessed)(Dart_NativeArguments args) {
124 Dart_ThrowException( 105 Dart_ThrowException(
125 DartUtils::NewInternalError("File is not supported on this platform")); 106 DartUtils::NewInternalError("File is not supported on this platform"));
126 } 107 }
127 108
128
129 void FUNCTION_NAME(File_Flush)(Dart_NativeArguments args) { 109 void FUNCTION_NAME(File_Flush)(Dart_NativeArguments args) {
130 Dart_ThrowException( 110 Dart_ThrowException(
131 DartUtils::NewInternalError("File is not supported on this platform")); 111 DartUtils::NewInternalError("File is not supported on this platform"));
132 } 112 }
133 113
134
135 void FUNCTION_NAME(File_Lock)(Dart_NativeArguments args) { 114 void FUNCTION_NAME(File_Lock)(Dart_NativeArguments args) {
136 Dart_ThrowException( 115 Dart_ThrowException(
137 DartUtils::NewInternalError("File is not supported on this platform")); 116 DartUtils::NewInternalError("File is not supported on this platform"));
138 } 117 }
139 118
140
141 void FUNCTION_NAME(File_Create)(Dart_NativeArguments args) { 119 void FUNCTION_NAME(File_Create)(Dart_NativeArguments args) {
142 Dart_ThrowException( 120 Dart_ThrowException(
143 DartUtils::NewInternalError("File is not supported on this platform")); 121 DartUtils::NewInternalError("File is not supported on this platform"));
144 } 122 }
145 123
146
147 void FUNCTION_NAME(File_CreateLink)(Dart_NativeArguments args) { 124 void FUNCTION_NAME(File_CreateLink)(Dart_NativeArguments args) {
148 Dart_ThrowException( 125 Dart_ThrowException(
149 DartUtils::NewInternalError("File is not supported on this platform")); 126 DartUtils::NewInternalError("File is not supported on this platform"));
150 } 127 }
151 128
152
153 void FUNCTION_NAME(File_LinkTarget)(Dart_NativeArguments args) { 129 void FUNCTION_NAME(File_LinkTarget)(Dart_NativeArguments args) {
154 Dart_ThrowException( 130 Dart_ThrowException(
155 DartUtils::NewInternalError("File is not supported on this platform")); 131 DartUtils::NewInternalError("File is not supported on this platform"));
156 } 132 }
157 133
158
159 void FUNCTION_NAME(File_Delete)(Dart_NativeArguments args) { 134 void FUNCTION_NAME(File_Delete)(Dart_NativeArguments args) {
160 Dart_ThrowException( 135 Dart_ThrowException(
161 DartUtils::NewInternalError("File is not supported on this platform")); 136 DartUtils::NewInternalError("File is not supported on this platform"));
162 } 137 }
163 138
164
165 void FUNCTION_NAME(File_DeleteLink)(Dart_NativeArguments args) { 139 void FUNCTION_NAME(File_DeleteLink)(Dart_NativeArguments args) {
166 Dart_ThrowException( 140 Dart_ThrowException(
167 DartUtils::NewInternalError("File is not supported on this platform")); 141 DartUtils::NewInternalError("File is not supported on this platform"));
168 } 142 }
169 143
170
171 void FUNCTION_NAME(File_Rename)(Dart_NativeArguments args) { 144 void FUNCTION_NAME(File_Rename)(Dart_NativeArguments args) {
172 Dart_ThrowException( 145 Dart_ThrowException(
173 DartUtils::NewInternalError("File is not supported on this platform")); 146 DartUtils::NewInternalError("File is not supported on this platform"));
174 } 147 }
175 148
176
177 void FUNCTION_NAME(File_RenameLink)(Dart_NativeArguments args) { 149 void FUNCTION_NAME(File_RenameLink)(Dart_NativeArguments args) {
178 Dart_ThrowException( 150 Dart_ThrowException(
179 DartUtils::NewInternalError("File is not supported on this platform")); 151 DartUtils::NewInternalError("File is not supported on this platform"));
180 } 152 }
181 153
182
183 void FUNCTION_NAME(File_Copy)(Dart_NativeArguments args) { 154 void FUNCTION_NAME(File_Copy)(Dart_NativeArguments args) {
184 Dart_ThrowException( 155 Dart_ThrowException(
185 DartUtils::NewInternalError("File is not supported on this platform")); 156 DartUtils::NewInternalError("File is not supported on this platform"));
186 } 157 }
187 158
188
189 void FUNCTION_NAME(File_ResolveSymbolicLinks)(Dart_NativeArguments args) { 159 void FUNCTION_NAME(File_ResolveSymbolicLinks)(Dart_NativeArguments args) {
190 Dart_ThrowException( 160 Dart_ThrowException(
191 DartUtils::NewInternalError("File is not supported on this platform")); 161 DartUtils::NewInternalError("File is not supported on this platform"));
192 } 162 }
193 163
194
195 void FUNCTION_NAME(File_OpenStdio)(Dart_NativeArguments args) { 164 void FUNCTION_NAME(File_OpenStdio)(Dart_NativeArguments args) {
196 Dart_ThrowException( 165 Dart_ThrowException(
197 DartUtils::NewInternalError("File is not supported on this platform")); 166 DartUtils::NewInternalError("File is not supported on this platform"));
198 } 167 }
199 168
200
201 void FUNCTION_NAME(File_GetStdioHandleType)(Dart_NativeArguments args) { 169 void FUNCTION_NAME(File_GetStdioHandleType)(Dart_NativeArguments args) {
202 Dart_ThrowException( 170 Dart_ThrowException(
203 DartUtils::NewInternalError("File is not supported on this platform")); 171 DartUtils::NewInternalError("File is not supported on this platform"));
204 } 172 }
205 173
206
207 void FUNCTION_NAME(File_GetType)(Dart_NativeArguments args) { 174 void FUNCTION_NAME(File_GetType)(Dart_NativeArguments args) {
208 Dart_ThrowException( 175 Dart_ThrowException(
209 DartUtils::NewInternalError("File is not supported on this platform")); 176 DartUtils::NewInternalError("File is not supported on this platform"));
210 } 177 }
211 178
212
213 void FUNCTION_NAME(File_Stat)(Dart_NativeArguments args) { 179 void FUNCTION_NAME(File_Stat)(Dart_NativeArguments args) {
214 Dart_ThrowException( 180 Dart_ThrowException(
215 DartUtils::NewInternalError("File is not supported on this platform")); 181 DartUtils::NewInternalError("File is not supported on this platform"));
216 } 182 }
217 183
218
219 void FUNCTION_NAME(File_AreIdentical)(Dart_NativeArguments args) { 184 void FUNCTION_NAME(File_AreIdentical)(Dart_NativeArguments args) {
220 Dart_ThrowException( 185 Dart_ThrowException(
221 DartUtils::NewInternalError("File is not supported on this platform")); 186 DartUtils::NewInternalError("File is not supported on this platform"));
222 } 187 }
223 188
224 } // namespace bin 189 } // namespace bin
225 } // namespace dart 190 } // namespace dart
226 191
227 #endif // !defined(DART_IO_DISABLED) 192 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/file_test.cc ('k') | runtime/bin/file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698