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

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

Issue 3006873002: [dart:io] Adds Platform.operatingSystemVersion (Closed)
Patch Set: Updated CHANGELOG Created 3 years, 3 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 | « pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart ('k') | runtime/bin/platform.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "bin/io_natives.h" 5 #include "bin/io_natives.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 V(Filter_Process, 4) \ 80 V(Filter_Process, 4) \
81 V(Filter_Processed, 3) \ 81 V(Filter_Processed, 3) \
82 V(InternetAddress_Parse, 1) \ 82 V(InternetAddress_Parse, 1) \
83 V(IOService_NewServicePort, 0) \ 83 V(IOService_NewServicePort, 0) \
84 V(Namespace_Create, 2) \ 84 V(Namespace_Create, 2) \
85 V(Namespace_GetDefault, 0) \ 85 V(Namespace_GetDefault, 0) \
86 V(Namespace_GetPointer, 1) \ 86 V(Namespace_GetPointer, 1) \
87 V(NetworkInterface_ListSupported, 0) \ 87 V(NetworkInterface_ListSupported, 0) \
88 V(Platform_NumberOfProcessors, 0) \ 88 V(Platform_NumberOfProcessors, 0) \
89 V(Platform_OperatingSystem, 0) \ 89 V(Platform_OperatingSystem, 0) \
90 V(Platform_OperatingSystemVersion, 0) \
90 V(Platform_PathSeparator, 0) \ 91 V(Platform_PathSeparator, 0) \
91 V(Platform_LocalHostname, 0) \ 92 V(Platform_LocalHostname, 0) \
92 V(Platform_ExecutableName, 0) \ 93 V(Platform_ExecutableName, 0) \
93 V(Platform_ResolvedExecutableName, 0) \ 94 V(Platform_ResolvedExecutableName, 0) \
94 V(Platform_Environment, 0) \ 95 V(Platform_Environment, 0) \
95 V(Platform_ExecutableArguments, 0) \ 96 V(Platform_ExecutableArguments, 0) \
96 V(Platform_GetVersion, 0) \ 97 V(Platform_GetVersion, 0) \
97 V(Platform_LocaleName, 0) \ 98 V(Platform_LocaleName, 0) \
98 V(Process_Start, 12) \ 99 V(Process_Start, 12) \
99 V(Process_Wait, 5) \ 100 V(Process_Wait, 5) \
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 struct NativeEntries* entry = &(IOEntries[i]); 207 struct NativeEntries* entry = &(IOEntries[i]);
207 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 208 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
208 return reinterpret_cast<const uint8_t*>(entry->name_); 209 return reinterpret_cast<const uint8_t*>(entry->name_);
209 } 210 }
210 } 211 }
211 return NULL; 212 return NULL;
212 } 213 }
213 214
214 } // namespace bin 215 } // namespace bin
215 } // namespace dart 216 } // namespace dart
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart ('k') | runtime/bin/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698