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

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

Issue 851253002: Reapply revert of "Make stdout/stderr async" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes to fix build-bot failures Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/lib/src/server/stdio_server.dart ('k') | runtime/bin/stdio.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 V(Socket_SetOption, 4) \ 83 V(Socket_SetOption, 4) \
84 V(Socket_JoinMulticast, 4) \ 84 V(Socket_JoinMulticast, 4) \
85 V(Socket_LeaveMulticast, 4) \ 85 V(Socket_LeaveMulticast, 4) \
86 V(Socket_GetSocketId, 1) \ 86 V(Socket_GetSocketId, 1) \
87 V(Socket_SetSocketId, 2) \ 87 V(Socket_SetSocketId, 2) \
88 V(Stdin_ReadByte, 1) \ 88 V(Stdin_ReadByte, 1) \
89 V(Stdin_GetEchoMode, 0) \ 89 V(Stdin_GetEchoMode, 0) \
90 V(Stdin_SetEchoMode, 1) \ 90 V(Stdin_SetEchoMode, 1) \
91 V(Stdin_GetLineMode, 0) \ 91 V(Stdin_GetLineMode, 0) \
92 V(Stdin_SetLineMode, 1) \ 92 V(Stdin_SetLineMode, 1) \
93 V(Stdout_GetTerminalSize, 0) \ 93 V(Stdout_GetTerminalSize, 1) \
94 V(StringToSystemEncoding, 1) \ 94 V(StringToSystemEncoding, 1) \
95 V(SystemEncodingToString, 1) 95 V(SystemEncodingToString, 1)
96 96
97 97
98 IO_NATIVE_LIST(DECLARE_FUNCTION); 98 IO_NATIVE_LIST(DECLARE_FUNCTION);
99 99
100 static struct NativeEntries { 100 static struct NativeEntries {
101 const char* name_; 101 const char* name_;
102 Dart_NativeFunction function_; 102 Dart_NativeFunction function_;
103 int argument_count_; 103 int argument_count_;
(...skipping 29 matching lines...) Expand all
133 struct NativeEntries* entry = &(IOEntries[i]); 133 struct NativeEntries* entry = &(IOEntries[i]);
134 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 134 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
135 return reinterpret_cast<const uint8_t*>(entry->name_); 135 return reinterpret_cast<const uint8_t*>(entry->name_);
136 } 136 }
137 } 137 }
138 return NULL; 138 return NULL;
139 } 139 }
140 140
141 } // namespace bin 141 } // namespace bin
142 } // namespace dart 142 } // namespace dart
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/server/stdio_server.dart ('k') | runtime/bin/stdio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698