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

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

Issue 102953008: Add getter for lineMode and echoMode for Stdin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « no previous file | runtime/bin/stdin.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 V(Socket_GetRemotePeer, 1) \ 69 V(Socket_GetRemotePeer, 1) \
70 V(Socket_GetError, 1) \ 70 V(Socket_GetError, 1) \
71 V(Socket_GetStdioHandle, 2) \ 71 V(Socket_GetStdioHandle, 2) \
72 V(Socket_GetType, 1) \ 72 V(Socket_GetType, 1) \
73 V(Socket_GetOption, 3) \ 73 V(Socket_GetOption, 3) \
74 V(Socket_SetOption, 4) \ 74 V(Socket_SetOption, 4) \
75 V(Socket_JoinMulticast, 4) \ 75 V(Socket_JoinMulticast, 4) \
76 V(Socket_LeaveMulticast, 4) \ 76 V(Socket_LeaveMulticast, 4) \
77 V(Socket_SetSocketId, 2) \ 77 V(Socket_SetSocketId, 2) \
78 V(Stdin_ReadByte, 1) \ 78 V(Stdin_ReadByte, 1) \
79 V(Stdin_SetEchoMode, 2) \ 79 V(Stdin_GetEchoMode, 0) \
80 V(Stdin_SetLineMode, 2) \ 80 V(Stdin_SetEchoMode, 1) \
81 V(Stdin_GetLineMode, 0) \
82 V(Stdin_SetLineMode, 1) \
81 V(StringToSystemEncoding, 1) \ 83 V(StringToSystemEncoding, 1) \
82 V(SystemEncodingToString, 1) 84 V(SystemEncodingToString, 1)
83 85
84 86
85 IO_NATIVE_LIST(DECLARE_FUNCTION); 87 IO_NATIVE_LIST(DECLARE_FUNCTION);
86 88
87 static struct NativeEntries { 89 static struct NativeEntries {
88 const char* name_; 90 const char* name_;
89 Dart_NativeFunction function_; 91 Dart_NativeFunction function_;
90 int argument_count_; 92 int argument_count_;
(...skipping 14 matching lines...) Expand all
105 if (!strcmp(function_name, entry->name_) && 107 if (!strcmp(function_name, entry->name_) &&
106 (entry->argument_count_ == argument_count)) { 108 (entry->argument_count_ == argument_count)) {
107 return reinterpret_cast<Dart_NativeFunction>(entry->function_); 109 return reinterpret_cast<Dart_NativeFunction>(entry->function_);
108 } 110 }
109 } 111 }
110 return NULL; 112 return NULL;
111 } 113 }
112 114
113 } // namespace bin 115 } // namespace bin
114 } // namespace dart 116 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/stdin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698