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 | 14 |
15 void FUNCTION_NAME(File_GetPointer)(Dart_NativeArguments args) { | 15 void FUNCTION_NAME(File_GetPointer)(Dart_NativeArguments args) { |
16 Dart_ThrowException(DartUtils::NewInternalError( | 16 Dart_ThrowException( |
17 "File is not supported on this platform")); | 17 DartUtils::NewInternalError("File is not supported on this platform")); |
18 } | 18 } |
19 | 19 |
20 | 20 |
21 void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) { | 21 void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) { |
22 Dart_ThrowException(DartUtils::NewInternalError( | 22 Dart_ThrowException( |
23 "File is not supported on this platform")); | 23 DartUtils::NewInternalError("File is not supported on this platform")); |
24 } | 24 } |
25 | 25 |
26 | 26 |
27 void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) { | 27 void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) { |
28 Dart_ThrowException(DartUtils::NewInternalError( | 28 Dart_ThrowException( |
29 "File is not supported on this platform")); | 29 DartUtils::NewInternalError("File is not supported on this platform")); |
30 } | 30 } |
31 | 31 |
32 | 32 |
33 void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) { | 33 void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) { |
34 Dart_ThrowException(DartUtils::NewInternalError( | 34 Dart_ThrowException( |
35 "File is not supported on this platform")); | 35 DartUtils::NewInternalError("File is not supported on this platform")); |
36 } | 36 } |
37 | 37 |
38 | 38 |
39 void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) { | 39 void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) { |
40 Dart_ThrowException(DartUtils::NewInternalError( | 40 Dart_ThrowException( |
41 "File is not supported on this platform")); | 41 DartUtils::NewInternalError("File is not supported on this platform")); |
42 } | 42 } |
43 | 43 |
44 | 44 |
45 void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) { | 45 void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) { |
46 Dart_ThrowException(DartUtils::NewInternalError( | 46 Dart_ThrowException( |
47 "File is not supported on this platform")); | 47 DartUtils::NewInternalError("File is not supported on this platform")); |
48 } | 48 } |
49 | 49 |
50 | 50 |
51 void FUNCTION_NAME(File_WriteByte)(Dart_NativeArguments args) { | 51 void FUNCTION_NAME(File_WriteByte)(Dart_NativeArguments args) { |
52 Dart_ThrowException(DartUtils::NewInternalError( | 52 Dart_ThrowException( |
53 "File is not supported on this platform")); | 53 DartUtils::NewInternalError("File is not supported on this platform")); |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 void FUNCTION_NAME(File_Read)(Dart_NativeArguments args) { | 57 void FUNCTION_NAME(File_Read)(Dart_NativeArguments args) { |
58 Dart_ThrowException(DartUtils::NewInternalError( | 58 Dart_ThrowException( |
59 "File is not supported on this platform")); | 59 DartUtils::NewInternalError("File is not supported on this platform")); |
60 } | 60 } |
61 | 61 |
62 | 62 |
63 void FUNCTION_NAME(File_ReadInto)(Dart_NativeArguments args) { | 63 void FUNCTION_NAME(File_ReadInto)(Dart_NativeArguments args) { |
64 Dart_ThrowException(DartUtils::NewInternalError( | 64 Dart_ThrowException( |
65 "File is not supported on this platform")); | 65 DartUtils::NewInternalError("File is not supported on this platform")); |
66 } | 66 } |
67 | 67 |
68 | 68 |
69 void FUNCTION_NAME(File_WriteFrom)(Dart_NativeArguments args) { | 69 void FUNCTION_NAME(File_WriteFrom)(Dart_NativeArguments args) { |
70 Dart_ThrowException(DartUtils::NewInternalError( | 70 Dart_ThrowException( |
71 "File is not supported on this platform")); | 71 DartUtils::NewInternalError("File is not supported on this platform")); |
72 } | 72 } |
73 | 73 |
74 | 74 |
75 void FUNCTION_NAME(File_Position)(Dart_NativeArguments args) { | 75 void FUNCTION_NAME(File_Position)(Dart_NativeArguments args) { |
76 Dart_ThrowException(DartUtils::NewInternalError( | 76 Dart_ThrowException( |
77 "File is not supported on this platform")); | 77 DartUtils::NewInternalError("File is not supported on this platform")); |
78 } | 78 } |
79 | 79 |
80 | 80 |
81 void FUNCTION_NAME(File_SetPosition)(Dart_NativeArguments args) { | 81 void FUNCTION_NAME(File_SetPosition)(Dart_NativeArguments args) { |
82 Dart_ThrowException(DartUtils::NewInternalError( | 82 Dart_ThrowException( |
83 "File is not supported on this platform")); | 83 DartUtils::NewInternalError("File is not supported on this platform")); |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 void FUNCTION_NAME(File_Truncate)(Dart_NativeArguments args) { | 87 void FUNCTION_NAME(File_Truncate)(Dart_NativeArguments args) { |
88 Dart_ThrowException(DartUtils::NewInternalError( | 88 Dart_ThrowException( |
89 "File is not supported on this platform")); | 89 DartUtils::NewInternalError("File is not supported on this platform")); |
90 } | 90 } |
91 | 91 |
92 | 92 |
93 void FUNCTION_NAME(File_Length)(Dart_NativeArguments args) { | 93 void FUNCTION_NAME(File_Length)(Dart_NativeArguments args) { |
94 Dart_ThrowException(DartUtils::NewInternalError( | 94 Dart_ThrowException( |
95 "File is not supported on this platform")); | 95 DartUtils::NewInternalError("File is not supported on this platform")); |
96 } | 96 } |
97 | 97 |
98 | 98 |
99 void FUNCTION_NAME(File_LengthFromPath)(Dart_NativeArguments args) { | 99 void FUNCTION_NAME(File_LengthFromPath)(Dart_NativeArguments args) { |
100 Dart_ThrowException(DartUtils::NewInternalError( | 100 Dart_ThrowException( |
101 "File is not supported on this platform")); | 101 DartUtils::NewInternalError("File is not supported on this platform")); |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 void FUNCTION_NAME(File_LastModified)(Dart_NativeArguments args) { | 105 void FUNCTION_NAME(File_LastModified)(Dart_NativeArguments args) { |
106 Dart_ThrowException(DartUtils::NewInternalError( | 106 Dart_ThrowException( |
107 "File is not supported on this platform")); | 107 DartUtils::NewInternalError("File is not supported on this platform")); |
108 } | 108 } |
109 | 109 |
110 | 110 |
111 void FUNCTION_NAME(File_Flush)(Dart_NativeArguments args) { | 111 void FUNCTION_NAME(File_Flush)(Dart_NativeArguments args) { |
112 Dart_ThrowException(DartUtils::NewInternalError( | 112 Dart_ThrowException( |
113 "File is not supported on this platform")); | 113 DartUtils::NewInternalError("File is not supported on this platform")); |
114 } | 114 } |
115 | 115 |
116 | 116 |
117 void FUNCTION_NAME(File_Lock)(Dart_NativeArguments args) { | 117 void FUNCTION_NAME(File_Lock)(Dart_NativeArguments args) { |
118 Dart_ThrowException(DartUtils::NewInternalError( | 118 Dart_ThrowException( |
119 "File is not supported on this platform")); | 119 DartUtils::NewInternalError("File is not supported on this platform")); |
120 } | 120 } |
121 | 121 |
122 | 122 |
123 void FUNCTION_NAME(File_Create)(Dart_NativeArguments args) { | 123 void FUNCTION_NAME(File_Create)(Dart_NativeArguments args) { |
124 Dart_ThrowException(DartUtils::NewInternalError( | 124 Dart_ThrowException( |
125 "File is not supported on this platform")); | 125 DartUtils::NewInternalError("File is not supported on this platform")); |
126 } | 126 } |
127 | 127 |
128 | 128 |
129 void FUNCTION_NAME(File_CreateLink)(Dart_NativeArguments args) { | 129 void FUNCTION_NAME(File_CreateLink)(Dart_NativeArguments args) { |
130 Dart_ThrowException(DartUtils::NewInternalError( | 130 Dart_ThrowException( |
131 "File is not supported on this platform")); | 131 DartUtils::NewInternalError("File is not supported on this platform")); |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 void FUNCTION_NAME(File_LinkTarget)(Dart_NativeArguments args) { | 135 void FUNCTION_NAME(File_LinkTarget)(Dart_NativeArguments args) { |
136 Dart_ThrowException(DartUtils::NewInternalError( | 136 Dart_ThrowException( |
137 "File is not supported on this platform")); | 137 DartUtils::NewInternalError("File is not supported on this platform")); |
138 } | 138 } |
139 | 139 |
140 | 140 |
141 void FUNCTION_NAME(File_Delete)(Dart_NativeArguments args) { | 141 void FUNCTION_NAME(File_Delete)(Dart_NativeArguments args) { |
142 Dart_ThrowException(DartUtils::NewInternalError( | 142 Dart_ThrowException( |
143 "File is not supported on this platform")); | 143 DartUtils::NewInternalError("File is not supported on this platform")); |
144 } | 144 } |
145 | 145 |
146 | 146 |
147 void FUNCTION_NAME(File_DeleteLink)(Dart_NativeArguments args) { | 147 void FUNCTION_NAME(File_DeleteLink)(Dart_NativeArguments args) { |
148 Dart_ThrowException(DartUtils::NewInternalError( | 148 Dart_ThrowException( |
149 "File is not supported on this platform")); | 149 DartUtils::NewInternalError("File is not supported on this platform")); |
150 } | 150 } |
151 | 151 |
152 | 152 |
153 void FUNCTION_NAME(File_Rename)(Dart_NativeArguments args) { | 153 void FUNCTION_NAME(File_Rename)(Dart_NativeArguments args) { |
154 Dart_ThrowException(DartUtils::NewInternalError( | 154 Dart_ThrowException( |
155 "File is not supported on this platform")); | 155 DartUtils::NewInternalError("File is not supported on this platform")); |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 void FUNCTION_NAME(File_RenameLink)(Dart_NativeArguments args) { | 159 void FUNCTION_NAME(File_RenameLink)(Dart_NativeArguments args) { |
160 Dart_ThrowException(DartUtils::NewInternalError( | 160 Dart_ThrowException( |
161 "File is not supported on this platform")); | 161 DartUtils::NewInternalError("File is not supported on this platform")); |
162 } | 162 } |
163 | 163 |
164 | 164 |
165 void FUNCTION_NAME(File_Copy)(Dart_NativeArguments args) { | 165 void FUNCTION_NAME(File_Copy)(Dart_NativeArguments args) { |
166 Dart_ThrowException(DartUtils::NewInternalError( | 166 Dart_ThrowException( |
167 "File is not supported on this platform")); | 167 DartUtils::NewInternalError("File is not supported on this platform")); |
168 } | 168 } |
169 | 169 |
170 | 170 |
171 void FUNCTION_NAME(File_ResolveSymbolicLinks)(Dart_NativeArguments args) { | 171 void FUNCTION_NAME(File_ResolveSymbolicLinks)(Dart_NativeArguments args) { |
172 Dart_ThrowException(DartUtils::NewInternalError( | 172 Dart_ThrowException( |
173 "File is not supported on this platform")); | 173 DartUtils::NewInternalError("File is not supported on this platform")); |
174 } | 174 } |
175 | 175 |
176 | 176 |
177 void FUNCTION_NAME(File_OpenStdio)(Dart_NativeArguments args) { | 177 void FUNCTION_NAME(File_OpenStdio)(Dart_NativeArguments args) { |
178 Dart_ThrowException(DartUtils::NewInternalError( | 178 Dart_ThrowException( |
179 "File is not supported on this platform")); | 179 DartUtils::NewInternalError("File is not supported on this platform")); |
180 } | 180 } |
181 | 181 |
182 | 182 |
183 void FUNCTION_NAME(File_GetStdioHandleType)(Dart_NativeArguments args) { | 183 void FUNCTION_NAME(File_GetStdioHandleType)(Dart_NativeArguments args) { |
184 Dart_ThrowException(DartUtils::NewInternalError( | 184 Dart_ThrowException( |
185 "File is not supported on this platform")); | 185 DartUtils::NewInternalError("File is not supported on this platform")); |
186 } | 186 } |
187 | 187 |
188 | 188 |
189 void FUNCTION_NAME(File_GetType)(Dart_NativeArguments args) { | 189 void FUNCTION_NAME(File_GetType)(Dart_NativeArguments args) { |
190 Dart_ThrowException(DartUtils::NewInternalError( | 190 Dart_ThrowException( |
191 "File is not supported on this platform")); | 191 DartUtils::NewInternalError("File is not supported on this platform")); |
192 } | 192 } |
193 | 193 |
194 | 194 |
195 void FUNCTION_NAME(File_Stat)(Dart_NativeArguments args) { | 195 void FUNCTION_NAME(File_Stat)(Dart_NativeArguments args) { |
196 Dart_ThrowException(DartUtils::NewInternalError( | 196 Dart_ThrowException( |
197 "File is not supported on this platform")); | 197 DartUtils::NewInternalError("File is not supported on this platform")); |
198 } | 198 } |
199 | 199 |
200 | 200 |
201 void FUNCTION_NAME(File_AreIdentical)(Dart_NativeArguments args) { | 201 void FUNCTION_NAME(File_AreIdentical)(Dart_NativeArguments args) { |
202 Dart_ThrowException(DartUtils::NewInternalError( | 202 Dart_ThrowException( |
203 "File is not supported on this platform")); | 203 DartUtils::NewInternalError("File is not supported on this platform")); |
204 } | 204 } |
205 | 205 |
206 } // namespace bin | 206 } // namespace bin |
207 } // namespace dart | 207 } // namespace dart |
208 | 208 |
209 #endif // !defined(DART_IO_DISABLED) | 209 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |