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

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

Issue 8574002: Handle stdin/stdout/stderr on Windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments from ager@ Created 9 years, 1 month 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/builtin.dart ('k') | runtime/bin/eventhandler_win.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 V(Platform_PathSeparator, 0) \ 48 V(Platform_PathSeparator, 0) \
49 V(Process_Start, 8) \ 49 V(Process_Start, 8) \
50 V(Process_Kill, 2) \ 50 V(Process_Kill, 2) \
51 V(Process_Exit, 2) \ 51 V(Process_Exit, 2) \
52 V(ServerSocket_CreateBindListen, 4) \ 52 V(ServerSocket_CreateBindListen, 4) \
53 V(ServerSocket_Accept, 2) \ 53 V(ServerSocket_Accept, 2) \
54 V(Socket_CreateConnect, 3) \ 54 V(Socket_CreateConnect, 3) \
55 V(Socket_Available, 1) \ 55 V(Socket_Available, 1) \
56 V(Socket_ReadList, 4) \ 56 V(Socket_ReadList, 4) \
57 V(Socket_WriteList, 4) \ 57 V(Socket_WriteList, 4) \
58 V(Socket_GetPort, 1) 58 V(Socket_GetPort, 1) \
59 V(Socket_GetStdioHandle, 2)
59 60
60 61
61 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); 62 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION);
62 63
63 static struct NativeEntries { 64 static struct NativeEntries {
64 const char* name_; 65 const char* name_;
65 Dart_NativeFunction function_; 66 Dart_NativeFunction function_;
66 int argument_count_; 67 int argument_count_;
67 } BuiltinEntries[] = { 68 } BuiltinEntries[] = {
68 BUILTIN_NATIVE_LIST(REGISTER_FUNCTION) 69 BUILTIN_NATIVE_LIST(REGISTER_FUNCTION)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 143 }
143 144
144 145
145 void Builtin_SetNativeResolver() { 146 void Builtin_SetNativeResolver() {
146 Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL); 147 Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL);
147 Dart_Handle builtin_lib = Dart_LookupLibrary(url); 148 Dart_Handle builtin_lib = Dart_LookupLibrary(url);
148 ASSERT(!Dart_IsError(builtin_lib)); 149 ASSERT(!Dart_IsError(builtin_lib));
149 Dart_Handle result = Dart_SetNativeResolver(builtin_lib, native_lookup); 150 Dart_Handle result = Dart_SetNativeResolver(builtin_lib, native_lookup);
150 ASSERT(!Dart_IsError(result)); 151 ASSERT(!Dart_IsError(result));
151 } 152 }
OLDNEW
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/eventhandler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698