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

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

Issue 2803793002: Removed duplicate variable definitions in socket_unsupport and socket_base_unsupported. (Closed)
Patch Set: Created 3 years, 8 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/socket_base_win.cc ('k') | no next file » | 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 bool short_socket_read = false;
15
16 bool short_socket_write = false;
17
18
19 void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) { 14 void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) {
20 Dart_ThrowException( 15 Dart_ThrowException(
21 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); 16 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
22 } 17 }
23 18
24 19
25 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { 20 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) {
26 Dart_ThrowException( 21 Dart_ThrowException(
27 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); 22 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
28 } 23 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 133
139 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { 134 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) {
140 Dart_ThrowException( 135 Dart_ThrowException(
141 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); 136 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
142 } 137 }
143 138
144 } // namespace bin 139 } // namespace bin
145 } // namespace dart 140 } // namespace dart
146 141
147 #endif // defined(DART_IO_DISABLED) 142 #endif // defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/socket_base_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698