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

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

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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)
6
5 #include "bin/platform.h" 7 #include "bin/platform.h"
6 8
7 #include "include/dart_api.h"
8
9 #include "bin/file.h" 9 #include "bin/file.h"
10 #include "bin/utils.h" 10 #include "bin/utils.h"
11 #include "include/dart_api.h"
11 12
12 namespace dart { 13 namespace dart {
13 namespace bin { 14 namespace bin {
14 15
15 const char* Platform::executable_name_ = NULL;
16 char* Platform::resolved_executable_name_ = NULL;
17 int Platform::script_index_ = 1;
18 char** Platform::argv_ = NULL;
19
20 void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) { 16 void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) {
21 Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors())); 17 Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors()));
22 } 18 }
23 19
24 20
25 void FUNCTION_NAME(Platform_OperatingSystem)(Dart_NativeArguments args) { 21 void FUNCTION_NAME(Platform_OperatingSystem)(Dart_NativeArguments args) {
26 Dart_SetReturnValue(args, DartUtils::NewString(Platform::OperatingSystem())); 22 Dart_SetReturnValue(args, DartUtils::NewString(Platform::OperatingSystem()));
27 } 23 }
28 24
29 25
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 114 }
119 } 115 }
120 116
121 117
122 void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) { 118 void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) {
123 Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString())); 119 Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
124 } 120 }
125 121
126 } // namespace bin 122 } // namespace bin
127 } // namespace dart 123 } // namespace dart
124
125 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_android.cc » ('j') | runtime/bin/socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698