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

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

Issue 2739683005: [dart:io] Adds Platform.ansiSupported (Closed)
Patch Set: Cleanup Created 3 years, 9 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 | « no previous file | runtime/bin/platform.h » ('j') | runtime/bin/platform_win.cc » ('J')
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 V(NetworkInterface_ListSupported, 0) \ 85 V(NetworkInterface_ListSupported, 0) \
86 V(Platform_NumberOfProcessors, 0) \ 86 V(Platform_NumberOfProcessors, 0) \
87 V(Platform_OperatingSystem, 0) \ 87 V(Platform_OperatingSystem, 0) \
88 V(Platform_PathSeparator, 0) \ 88 V(Platform_PathSeparator, 0) \
89 V(Platform_LocalHostname, 0) \ 89 V(Platform_LocalHostname, 0) \
90 V(Platform_ExecutableName, 0) \ 90 V(Platform_ExecutableName, 0) \
91 V(Platform_ResolvedExecutableName, 0) \ 91 V(Platform_ResolvedExecutableName, 0) \
92 V(Platform_Environment, 0) \ 92 V(Platform_Environment, 0) \
93 V(Platform_ExecutableArguments, 0) \ 93 V(Platform_ExecutableArguments, 0) \
94 V(Platform_GetVersion, 0) \ 94 V(Platform_GetVersion, 0) \
95 V(Platform_AnsiSupported, 0) \
95 V(Process_Start, 11) \ 96 V(Process_Start, 11) \
96 V(Process_Wait, 5) \ 97 V(Process_Wait, 5) \
97 V(Process_KillPid, 2) \ 98 V(Process_KillPid, 2) \
98 V(Process_SetExitCode, 1) \ 99 V(Process_SetExitCode, 1) \
99 V(Process_GetExitCode, 0) \ 100 V(Process_GetExitCode, 0) \
100 V(Process_Exit, 1) \ 101 V(Process_Exit, 1) \
101 V(Process_Sleep, 1) \ 102 V(Process_Sleep, 1) \
102 V(Process_Pid, 1) \ 103 V(Process_Pid, 1) \
103 V(Process_SetSignalHandler, 1) \ 104 V(Process_SetSignalHandler, 1) \
104 V(Process_ClearSignalHandler, 1) \ 105 V(Process_ClearSignalHandler, 1) \
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 struct NativeEntries* entry = &(IOEntries[i]); 192 struct NativeEntries* entry = &(IOEntries[i]);
192 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 193 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
193 return reinterpret_cast<const uint8_t*>(entry->name_); 194 return reinterpret_cast<const uint8_t*>(entry->name_);
194 } 195 }
195 } 196 }
196 return NULL; 197 return NULL;
197 } 198 }
198 199
199 } // namespace bin 200 } // namespace bin
200 } // namespace dart 201 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/platform.h » ('j') | runtime/bin/platform_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698