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

Side by Side Diff: runtime/bin/stdio.dart

Issue 10883071: - Change "static final" to "static const" in the runtime/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/socket_impl.dart ('k') | runtime/bin/timer_impl.dart » ('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) 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 final int _STDIO_HANDLE_TYPE_TERMINAL = 0; 5 const int _STDIO_HANDLE_TYPE_TERMINAL = 0;
6 final int _STDIO_HANDLE_TYPE_PIPE = 1; 6 const int _STDIO_HANDLE_TYPE_PIPE = 1;
7 final int _STDIO_HANDLE_TYPE_FILE = 2; 7 const int _STDIO_HANDLE_TYPE_FILE = 2;
8 final int _STDIO_HANDLE_TYPE_SOCKET = 3; 8 const int _STDIO_HANDLE_TYPE_SOCKET = 3;
9 final int _STDIO_HANDLE_TYPE_OTHER = -1; 9 const int _STDIO_HANDLE_TYPE_OTHER = -1;
10 10
11 11
12 InputStream _stdin; 12 InputStream _stdin;
13 OutputStream _stdout; 13 OutputStream _stdout;
14 OutputStream _stderr; 14 OutputStream _stderr;
15 15
16 16
17 InputStream _getStdioInputStream() { 17 InputStream _getStdioInputStream() {
18 switch (_getStdioHandleType(0)) { 18 switch (_getStdioHandleType(0)) {
19 case _STDIO_HANDLE_TYPE_TERMINAL: 19 case _STDIO_HANDLE_TYPE_TERMINAL:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 OutputStream get stderr { 66 OutputStream get stderr {
67 if (_stderr == null) { 67 if (_stderr == null) {
68 _stderr = _getStdioOutputStream(2); 68 _stderr = _getStdioOutputStream(2);
69 } 69 }
70 return _stderr; 70 return _stderr;
71 } 71 }
72 72
73 _getStdioHandle(Socket socket, int num) native "Socket_GetStdioHandle"; 73 _getStdioHandle(Socket socket, int num) native "Socket_GetStdioHandle";
74 _getStdioHandleType(int num) native "File_GetStdioHandleType"; 74 _getStdioHandleType(int num) native "File_GetStdioHandleType";
OLDNEW
« no previous file with comments | « runtime/bin/socket_impl.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698